Commit f186b2d
committed
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>1 parent 39cd87c commit f186b2d
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3135 | 3135 | | |
3136 | 3136 | | |
3137 | 3137 | | |
3138 | | - | |
3139 | 3138 | | |
3140 | 3139 | | |
3141 | | - | |
3142 | 3140 | | |
3143 | 3141 | | |
3144 | 3142 | | |
| |||
0 commit comments