mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
3b4628a8af
commit
c347f31ae2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user