From: adobriyan@sw.ru (Alexey Dobriyan)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] coretemp - take3
Date: Mon, 19 Mar 2007 14:17:02 +0000 [thread overview]
Message-ID: <20070319141702.GA6805@localhost.sw.ru> (raw)
In-Reply-To: <45FDC7A4.9070601@assembler.cz>
On Mon, Mar 19, 2007 at 07:31:11AM +0100, Rudolf Marek wrote:
> Maybe OpenVZ needs both safe and unsafe variants in msr-on-cpu?
Frankly I don't understand when one should use rdmsr_safe() instead of
rdmsr(). p4-clockmod driver worked fine with plain rdmsr/wrmsr.
For general education, why this driver uses _safe functions?
What's wrong with http://ssh.cz/~ruik/patches/add-msr-io-safe.patch
is:
a) naming: _on_cpu is suffix and thus should be last
FOO(...) => FOO_on_cpu(unsigned int cpu, ...)
b) static qualifier should be first.
c) coding style in wrmsr_on_cpu/rdmsr_on_cpu/...
static int foo(...)
{
...
}
d) +#include <linux/errno.h>
what for? those dummy inlines don't include -E*
> >> On URL bellow is current version of coretemp driver.
> >>
> >> http://ssh.cz/~ruik/patches/
> >>
> >> What was fixed? I fixed the issues Jean pointed out, I created separate patch
> >> for ...msr_safe stuff.
> >>
> > In arch/i386/lib/msr-on-cpu.c, I'm not sure if you really need to create
> > 2 versions of the functions (safe and unsafe). Anyway, no one uses these
> > functions in the kernel yet, so I think you can simply convert them to
> > safe versions.
>
>
> -snip-
>
> I will answer the rest in the evening.
next prev parent reply other threads:[~2007-03-19 14:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-18 23:13 [lm-sensors] coretemp - take3 Rudolf Marek
2007-03-19 3:58 ` Nicolas Boichat
2007-03-19 4:17 ` Nicolas Boichat
2007-05-02 22:41 ` Justin Piszcz
2007-05-02 22:41 ` Justin Piszcz
2007-05-03 6:40 ` [lm-sensors] " Rudolf Marek
2007-05-03 6:40 ` Rudolf Marek
2007-03-19 6:31 ` [lm-sensors] " Rudolf Marek
2007-03-19 14:17 ` Alexey Dobriyan [this message]
2007-03-20 21:51 ` Rudolf Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070319141702.GA6805@localhost.sw.ru \
--to=adobriyan@sw.ru \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.