summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorChristian Loehle <christian.loehle@arm.com>2026-11-03 18:19:03 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-11-04 14:58:23 +0100
commite6f50e602e373583423654ec000cad8b8d08f7bc (patch)
tree0bd56f430b5b752bb3b4fd673da575070739bdb4 /include/linux/workqueue_api.h
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
cpufreq: Hold the policy write lock when changing boost state
The per-policy boost sysfs handler calls policy_set_boost() under policy->rwsem, but the global boost handler and cpufreq_online() do not. Consequently, global and per-policy boost changes can concurrently update policy->boost_enabled, invoke the driver callback and update the boost frequency QoS request. The driver callbacks also access policy state, e.g. CPPC updates cpuinfo.max_freq that assumes policy->rw_sem held. Take policy->rwsem around policy_set_boost() in both unlocked callers. Keep locking at the call sites because the per-policy sysfs handler already holds the lock. Fixes: 218a06a79d9a ("cpufreq: Support per-policy performance boost") Signed-off-by: Christian Loehle <christian.loehle@arm.com> Link: https://patch.msgid.link/be3739f8-e668-4711-912c-91459d77ed35@arm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions