x86/hwmon: fix initialization of coretemp
authorJan Beulich <jbeulich@novell.com>
Fri, 24 Sep 2010 05:21:34 +0000 (22:21 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 24 Sep 2010 18:44:19 +0000 (11:44 -0700)
commita46590533ad7b0f3f640732081d7e1658145c0ba
tree3ee17795bbcf7a057a032c41938103d7402ea302
parentd172132f358552eabd7a7410e478ffeead445243
x86/hwmon: fix initialization of coretemp

Using cpuid_eax() to determine feature availability on other than
the current CPU is invalid. And feature availability should also be
checked in the hotplug code path.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Rudolf Marek <r.marek@assembler.cz>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
arch/x86/include/asm/cpufeature.h
arch/x86/kernel/cpu/scattered.c
drivers/hwmon/coretemp.c