thermal: cpu_cooling: don't store cpu_dev in cpufreq_cdev
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 10:27:22 +0000 (15:57 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:32:55 +0000 (17:32 -0700)
commit53ca1ece60a719e23f686c647cb05d9e12a31974
tree0a190a99e34eede0d8cf54700fe72de75be554d4
parentda27f69d6a4eaf7bdaaad9d9e1b997a1c8f186aa
thermal: cpu_cooling: don't store cpu_dev in cpufreq_cdev

'cpu_dev' is used by only one function, get_static_power(), and it
wouldn't be time consuming to get the cpu device structure within it.
This would help removing cpu_dev from struct cpufreq_cooling_device.

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