thermal: cpu_cooling: don't iterate over all allowed_cpus to update cpufreq policy
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:56 +0000 (09:41 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:56 +0000 (12:08 -0400)
commite1fae554fb69b8869acbea9397d15758a93d1204
tree39f216c800991b6f2b8c927842372708253e836d
parent405fb8256226ad68cf6ba5172d289a70cb447c81
thermal: cpu_cooling: don't iterate over all allowed_cpus to update cpufreq policy

All CPUs present in 'allowed_cpus' share the same 'struct cpufreq_policy'
structure and so calling cpufreq_update_policy() for each of them doesn't make
sense.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c