[lm-sensors] [PATCH] coretemp 1/3 Add rdmsr_safe_on_cpu and wrmsr_safe_on_cpu functions
r.marek at assembler.cz
Tue Mar 20 23:50:39 CET 2007
I will spin the new patches here, in this thread. However I dont know whom to
address this patch - after it is well tested. Maybe I will convert the msr.c
driver for this new calls too.
This patch adds support for _safe (exception handled) variants of rdmsr_on_cpu
and wrmsr_on_cpu. This is needed for the new coretemp driver, which might step
into non-existing MSR (poorly documented).
Signed-of-by: Rudolf Marek <r.marek at assembler.cz>
Alexey, are you the right person to pass this to? LKML maybe?
To correct my statement about the include file:
In file included from include/asm/processor.h:16,
include/asm/msr.h: In function 'rdmsr_safe_on_cpu':
include/asm/msr.h:179: error: 'EIO' undeclared (first use in this function)
include/asm/msr.h:179: error: (Each undeclared identifier is reported only once
include/asm/msr.h:179: error: for each function it appears in.)
include/asm/msr.h: In function 'wrmsr_safe_on_cpu':
include/asm/msr.h:183: error: 'EFAULT' undeclared (first use in this function)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5442 bytes
Desc: not available
More information about the lm-sensors