summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-12-04 07:12:05 +0300
committerEduardo Valentin <edubezval@gmail.com>2014-12-08 21:10:08 +0300
commitb9f8b4160310e4459c08b54b918cd83da141f7f0 (patch)
tree39aee91d1f67d9bed5b890f5ed19381b557c5eed /drivers/power
parent2479bb6443d6a793f896219a34bfab0cc410f0b4 (diff)
downloadlinux-b9f8b4160310e4459c08b54b918cd83da141f7f0.tar.xz
thermal: cpu_cooling: Pass 'cpufreq_dev' to get_property()
We already know the value of 'cpufreq_dev->max_level' and so there is no need calculating that once again. For this, we need to send 'cpufreq_dev' to get_property(). Make all necessary changes for this change. Because cpufreq_cooling_get_level() doesn't have access to 'cpufreq_dev', it is updated to iterate over the list of cpufreq_cooling_devices to get cooling device for the cpu number passed to it. This also makes it robust to return levels only for the CPU registered via a cooling device. We don't have to support anything that isn't registered yet. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions