Skip to content

Commit c347f31

Browse files
vireshkrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Link: https://patch.msgid.link/3003fbdcc1850128fe7fb653d7ddb8afc4d66170.1745511526.git.viresh.kumar@linaro.org Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 3b4628a commit c347f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,7 @@ static int cpufreq_boost_trigger_state(int state)
28072807

28082808
cpus_read_lock();
28092809
for_each_active_policy(policy) {
2810-
if (!policy->boost_supported)
2810+
if (!policy->boost_supported || policy->boost_enabled == state)
28112811
continue;
28122812

28132813
policy->boost_enabled = state;

0 commit comments

Comments
 (0)