thermal: cpu_cooling: OPPs are registered for all CPUs
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 10:27:17 +0000 (15:57 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:32:37 +0000 (17:32 -0700)
commit02bacb21c6575ce408645ddb22fef44940d10257
tree148e675552852d5d48c421db59e95d2e6c0047d9
parentb12b6519496bb07b0845ed50eee1ca75c3b7fa81
thermal: cpu_cooling: OPPs are registered for all CPUs

The OPPs are registered for all CPUs of a cpufreq policy now and we
don't need to run the loop in build_dyn_power_table(). Just check for
the policy->cpu and we should be fine.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c