]> git.hungrycats.org Git - linux/commit
cpufreq: intel_pstate: Make hwp_notify_lock a raw spinlock
authorUwe Kleine-König <ukleinek@debian.org>
Thu, 19 Sep 2024 08:11:21 +0000 (10:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Oct 2024 18:43:39 +0000 (20:43 +0200)
commit8b4865cd904650cbed7f2407e653934c621b8127
tree5eee54153895ab305266efda15dab7300e4bbb34
parent9852d85ec9d492ebef56dc5f229416c925758edc
cpufreq: intel_pstate: Make hwp_notify_lock a raw spinlock

notify_hwp_interrupt() is called via sysvec_thermal() ->
smp_thermal_vector() -> intel_thermal_interrupt() in hard irq context.
For this reason it must not use a simple spin_lock that sleeps with
PREEMPT_RT enabled. So convert it to a raw spinlock.

Reported-by: xiao sheng wen <atzlinux@sina.com>
Link: https://bugs.debian.org/1076483
Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: xiao sheng wen <atzlinux@sina.com>
Link: https://patch.msgid.link/20240919081121.10784-2-ukleinek@debian.org
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c