diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-11-22 17:42:02 +0000 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-12-09 21:54:07 -0800 |
commit | e1b370b64031a01bb0c4158ce250073a88921fe1 (patch) | |
tree | d35a9a417f318f1f474f083398c760019d8523c3 /kernel | |
parent | 723f573433b2900f1d4539b8eb0d24cd17a42c65 (diff) |
hwmon: (coretemp) Simplify sibling management
The coretemp driver provides a sysfs interface per physical core. If
hyperthreading is enabled and one of the siblings goes offline the sysfs
interface is removed and then immeditately created again for the
sibling. The only difference of them is the target cpu for the
rdmsr_on_cpu() in the sysfs show functions.
It's way simpler to keep a cpumask of cpus which are active in a package
and only remove the interface when the last sibling goes offline. Otherwise
just move the target cpu for the sysfs show functions to the still online
sibling.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions