summaryrefslogtreecommitdiff
path: root/drivers/thermal/samsung
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-12-04 07:11:55 +0300
committerEduardo Valentin <edubezval@gmail.com>2014-12-08 19:08:56 +0300
commit405fb8256226ad68cf6ba5172d289a70cb447c81 (patch)
treeadcaf187ecf0ba4ae9395b5a3faf99594bafc56c /drivers/thermal/samsung
parent268ac445ee1b2b7c2806e7a21076e6d94aca1ca3 (diff)
downloadlinux-405fb8256226ad68cf6ba5172d289a70cb447c81.tar.xz
thermal: cpu_cooling: Don't match min/max frequencies for all CPUs on cooling register
In __cpufreq_cooling_register() we try to match min/max frequencies for all CPUs passed in 'clip_cpus' mask. This mask is the cpumask of cpus where the frequency constraints will be applied. Same frequency constraint can be applied only to the CPUs belonging to the same cluster (i.e. CPUs sharing clock line). For all such CPUs we have a single 'struct cpufreq_policy' structure managing them and so getting policies for all CPUs wouldn't make any sense as they will all return the same pointer. So, remove this useless check of checking min/max for all CPUs. Also update doc comment to make this more obvious that clip_cpus should be same as policy->related_cpus. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/samsung')
0 files changed, 0 insertions, 0 deletions