]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/x86 pkg temp: Convert to hotplug state machine
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 22 Nov 2016 17:57:15 +0000 (17:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 30 Nov 2016 02:25:47 +0000 (10:25 +0800)
commit64992e7767b4a83cdb7ef9be734a86116dfc6dc9
tree30d050c387413f7c1d142a54e1d70b956ad2c269
parent78105968836e1cfac10132eaeb3d8b2feb23b41c
thermal/x86 pkg temp: Convert to hotplug state machine

Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.

Replace the wrmsr/rdmrs_on_cpu() calls in the hotplug callbacks as they are
guaranteed to be invoked on the incoming/outgoing cpu.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/x86_pkg_temp_thermal.c