cpufreq: intel_pstate: Simplify spinlock locking
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Mar 2024 19:30:42 +0000 (20:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Apr 2024 10:56:33 +0000 (12:56 +0200)
commit12ebba42d2f1eadc0f897ffeb6dbcfaf2449e107
treec98cd3286ed527e600b20be536f8b698c5ea4d33
parentf186b2dace86f36cc08872b693185eaf71128898
cpufreq: intel_pstate: Simplify spinlock locking

Because intel_pstate_enable/disable_hwp_interrupt() are only called from
thread context, they need not save the IRQ flags when using a spinlock
as interrupts are guaranteed to be enabled when they run, so make them
use spin_lock/unlock_irq().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c