summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/shtc1.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-11-22 17:42:02 +0000
committerGuenter Roeck <linux@roeck-us.net>2016-12-09 21:54:06 -0800
commit723f573433b2900f1d4539b8eb0d24cd17a42c65 (patch)
tree6ccba8fe96980a3a480927e4b44dc92c7333c67a /drivers/hwmon/shtc1.c
parent78305ae70cbad28acba65b69d3497cd301cf3479 (diff)
downloadlinux-723f573433b2900f1d4539b8eb0d24cd17a42c65.tar.gz
linux-723f573433b2900f1d4539b8eb0d24cd17a42c65.tar.bz2
linux-723f573433b2900f1d4539b8eb0d24cd17a42c65.zip
hwmon: (coretemp) Fixup target cpu for package when cpu is offlined
When a CPU is offlined nothing checks whether it is the target CPU for the package temperature sysfs interface. As a consequence all future readouts of the package temperature return crap: 90000 which is Tjmax of that package. Check whether the outgoing CPU is the target for the package and assign it to some other still online CPU in the package. Protect the change against the rdmsr_on_cpu() in show_crit_alarm(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/shtc1.c')
0 files changed, 0 insertions, 0 deletions