https://github.com/torvalds/linux
Revision 0eb9782ad9b1bd496ba61cd5ea27ccb8db21e885 authored by Jean Delvare on 28 September 2011, 15:11:00 UTC, committed by Guenter Roeck on 28 September 2011, 15:19:20 UTC
With recent change "hwmon: (coretemp) don't use kernel assigned CPU
number as platform device ID", the microcode check is now running on
random CPU. Fix that by checking the microcode before creating the
platform device rather than at probe time.

Also avoid calling TO_PHYS_ID(cpu) twice in the same function, it's
expensive.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
1 parent a102a9e
Raw File
Tip revision: 0eb9782ad9b1bd496ba61cd5ea27ccb8db21e885 authored by Jean Delvare on 28 September 2011, 15:11:00 UTC
hwmon: (coretemp) Fixup platform device ID change
Tip revision: 0eb9782
.gitignore
#
# Generated files
#
gen_crc32table
crc32table.h

back to top