diff options
author | Jean Delvare <[email protected]> | 2011-09-28 08:11:00 -0700 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2011-09-28 08:19:20 -0700 |
commit | 0eb9782ad9b1bd496ba61cd5ea27ccb8db21e885 (patch) | |
tree | 9ef8d8f799df410990aa48ca5fd7518b9ba24495 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a102a9ece5489e1718cd7543aa079082450ac3a2 (diff) |
hwmon: (coretemp) Fixup platform device ID change
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 <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Guenter Roeck <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions