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)
commitfc32150e6f43d6cb93ea75937bb6a88a1764cc37
tree3b5699e3b9404305753a63106f0743d5f9abb676
parent51e69e6551a8c6fffe0185ba305bb4e2d7223616
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