]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/cpu_cooling: quit early after updating policy
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 30 Jul 2015 07:10:31 +0000 (12:40 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sat, 15 Aug 2015 01:26:22 +0000 (18:26 -0700)
commita8fe0208970bb7923843848a8615d437d9db5ddc
treedfea5c8d883bc4697999a80462ad6181c202918c
parent0b83cda57d70699c5cc8e0f30c22ffa161b074c9
thermal/cpu_cooling: quit early after updating policy

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