]> 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)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 28 Mar 2020 12:21:08 +0000 (13:21 +0100)
commit4458cea4857dbe7d5bda45e74f389a090f549911
tree3b5699e3b9404305753a63106f0743d5f9abb676
parent4e4a3db8ce4ce5a46bf7559da1a33bcc7b563695
thermal/x86_pkg_temp: Make pkg_temp_lock a raw_spinlock_t

The pkg_temp_lock spinlock is acquired in the thermal vector handler which
is truly atomic context even on PREEMPT_RT kernels.

The critical sections are tiny, so change it to a raw spinlock.

Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20191008110021.2j44ayunal7fkb7i@linutronix.de
drivers/thermal/intel/x86_pkg_temp_thermal.c