projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76fd38c
)
thermal/cpu_cooling: quit early after updating policy
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 30 Jul 2015 07:10:31 +0000
(12:40 +0530)
committer
Eduardo Valentin
<edubezval@gmail.com>
Sat, 15 Aug 2015 01:26:22 +0000
(18:26 -0700)
If a valid cpufreq_dev is found for policy->cpu, we should update the
policy and quit the for loop. There is no need to keep traversing the
list of cpufreq_dev's.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/cpu_cooling.c
b/drivers/thermal/cpu_cooling.c
index c7572dfc927adaa4b9708601821b17227810960b..093537f00db319d7cb5f4e3e639e7deab19509ee 100644
(file)
--- a/
drivers/thermal/cpu_cooling.c
+++ b/
drivers/thermal/cpu_cooling.c
@@
-235,6
+235,7
@@
static int cpufreq_thermal_notifier(struct notifier_block *nb,
if (policy->max != max_freq)
cpufreq_verify_within_limits(policy, 0,
max_freq);
+ break;
}
mutex_unlock(&cooling_list_lock);
break;