diff options
author | 2025-04-24 21:50:15 +0530 | |
---|---|---|
committer | 2025-04-25 18:28:22 +0200 | |
commit | c347f31ae27f6196afbe812acd09af3f076ff117 (patch) | |
tree | 9a236850bef8a9556bad77a55a47a8086375e39d /drivers/cpufreq | |
parent | Merge back cpufreq material for 6.16 (diff) | |
download | linux-rng-c347f31ae27f6196afbe812acd09af3f076ff117.tar.xz linux-rng-c347f31ae27f6196afbe812acd09af3f076ff117.zip |
cpufreq: Don't unnecessarily call set_boost()
The policy specific boost value may already be set correctly in
cpufreq_boost_trigger_state(), don't update it again unnecessarily.
Reviewed-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/3003fbdcc1850128fe7fb653d7ddb8afc4d66170.1745511526.git.viresh.kumar@linaro.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 1452692d1d2c..5e6e34e7a5b8 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2807,7 +2807,7 @@ static int cpufreq_boost_trigger_state(int state) cpus_read_lock(); for_each_active_policy(policy) { - if (!policy->boost_supported) + if (!policy->boost_supported || policy->boost_enabled == state) continue; policy->boost_enabled = state; |