]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
thermal/x86_pkg_temp: Cleanup thermal interrupt handling
authorThomas Gleixner <tglx@linutronix.de>
Tue, 22 Nov 2016 17:57:04 +0000 (17:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 30 Nov 2016 02:24:20 +0000 (10:24 +0800)
commit768bd13c93c043a7793dca6d98ba75572bb9b956
tree55b32a835508b2e740e7ccd799022241bd96d2c9
parentc6068a6edd50569fc34340c3abb30c24e24b8909
thermal/x86_pkg_temp: Cleanup thermal interrupt handling

Wenn a package is removed nothing restores the thermal interrupt MSR so
the content will be stale when a CPU of that package becomes online again.

Aside of that the work function reenables interrupts before acknowledging
the current one, which is the wrong order to begin with.

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