]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
thermal: cpu_cooling: Don't match min/max frequencies for all CPUs on cooling register
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:55 +0000 (09:41 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:56 +0000 (12:08 -0400)
commit405fb8256226ad68cf6ba5172d289a70cb447c81
treeadcaf187ecf0ba4ae9395b5a3faf99594bafc56c
parent268ac445ee1b2b7c2806e7a21076e6d94aca1ca3
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>
drivers/thermal/cpu_cooling.c