]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/x86_pkg_temp: Make pkg_temp_lock a raw_spinlock_t
authorClark Williams <williams@redhat.com>
Tue, 8 Oct 2019 11:00:21 +0000 (13:00 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 21 Mar 2020 09:01:02 +0000 (10:01 +0100)
commit662fe21448ac152ed013380cbe50d607536d70a6
treeb305b0830b15a43bfd4d75768da2584790fa0f17
parent9a87992113b261fd773cfc8cc13073468b96b3cb
thermal/x86_pkg_temp: Make pkg_temp_lock a raw_spinlock_t

The spinlock pkg_temp_lock has the potential of being taken in atomic
context because it can be acquired from the thermal IRQ vector.
It's static and limited scope so go ahead and make it a raw spinlock.

Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20191008110021.2j44ayunal7fkb7i@linutronix.de
drivers/thermal/intel/x86_pkg_temp_thermal.c
drivers/thermal/st/stm_thermal.c