cpufreq: intel_pstate: Drop redundant locking from intel_pstate_driver_cleanup()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Mar 2024 19:29:43 +0000 (20:29 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Apr 2024 10:56:08 +0000 (12:56 +0200)
commitf186b2dace86f36cc08872b693185eaf71128898
tree4e5f58833227af9bb0e430525828afe6a6ea027d
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
cpufreq: intel_pstate: Drop redundant locking from intel_pstate_driver_cleanup()

Remove the spinlock locking from intel_pstate_driver_cleanup() as it is
not necessary because no other code accessing all_cpu_data[] can run in
parallel with that function.

Had the locking been necessary, though, it would have been incorrect
because the lock in question is acquired from a hardirq handler and
it cannot be acquired from thread context without disabling interrupts.

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