summaryrefslogtreecommitdiff
path: root/drivers/thermal/thermal-generic-adc.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-11-22 20:57:06 +0300
committerZhang Rui <rui.zhang@intel.com>2016-11-30 05:24:53 +0300
commit09a674cd695f93bbbd09f24b5e13127c5907ef0c (patch)
tree4e56fb72ed3cfe805b851fc98f2e07a3da0e9b08 /drivers/thermal/thermal-generic-adc.c
parent21a3d3d4c8f373054421443e244c75a94a40b1ae (diff)
downloadlinux-09a674cd695f93bbbd09f24b5e13127c5907ef0c.tar.xz
thermal/x86_pkg_temp: Sanitize callback (de)initialization
The threshold callbacks are installed before the initialization of the online cpus has succeeded and removed after the teardown has been done. That's both wrong as callbacks might be invoked into a half initialized or torn down state. Move them to the proper places: Last in init() and first in exit(). While at it shorten the insane long and horrible named function names. 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>
Diffstat (limited to 'drivers/thermal/thermal-generic-adc.c')
0 files changed, 0 insertions, 0 deletions