]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: Force sync policy boost with global boost on sysfs update
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 24 Apr 2025 16:20:18 +0000 (21:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:30 +0000 (11:05 +0100)
commit1cf0a6f43399362e30f0068c3a6002395e7801f8
tree3bb3467d2a3c2122197d19946aed624b0217021f
parentca41c10be5697cf4726515c4c31009973d152ed9
cpufreq: Force sync policy boost with global boost on sysfs update

[ Upstream commit 121baab7b88ed865532dadb7ef1aee6e2bea86f5 ]

If the global boost flag is enabled and policy boost flag is disabled, a
call to `cpufreq_boost_trigger_state(true)` must enable the policy's
boost state.

The current code misses that because of an optimization. Fix it.

Suggested-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Reviewed-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/852ff11c589e6300730d207baac195b2d9d8b95f.1745511526.git.viresh.kumar@linaro.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/cpufreq.c