From: Viresh Kumar Date: Thu, 27 Nov 2014 00:37:50 +0000 (+0530) Subject: cpufreq-dt: pass 'policy->related_cpus' to of_cpufreq_cooling_register() X-Git-Tag: omap-for-v3.19/fixes-rc1~136^2~1^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a10c14755a5929eaf43cea760bc307ee7e96bc;p=pandora-kernel.git cpufreq-dt: pass 'policy->related_cpus' to of_cpufreq_cooling_register() The second parameter of of_cpufreq_cooling_register() should be the CPUs to which the frequency constraint will apply. As the cpufreq-dt driver now supports platforms with multiple 'struct cpufreq_policy' instances (i.e. > 1 clock domains for CPUs), passing 'cpu_present_mask' isn't correct anymore. As every policy will have a set of CPUs and that may not be equal to 'cpu_present_mask' always. So, pass only mask of CPUs which are controlled by current policy. Signed-off-by: Viresh Kumar Reviewed-by: Eduardo Valentin Tested-by: Eduardo Valentin Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed