]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/thermal/cpu_cooling.c
thermal: cpu_cooling: remove cpufreq_cooling_get_level()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 10:27:12 +0000 (15:57 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:32:04 +0000 (17:32 -0700)
commit3e08b2df12983159ea2d9a1aa2b2bc601093b3cb
tree33a414b198ba6a1b1da1b6715b53c7d2ee4e593a
parent04bdbdf93cedc728ceff6af175fcce2bedfdd25f
thermal: cpu_cooling: remove cpufreq_cooling_get_level()

There is only one user of cpufreq_cooling_get_level() and that already
has pointer to the cpufreq_cdev structure. It can directly call
get_level() instead and we can get rid of cpufreq_cooling_get_level().

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
include/linux/cpu_cooling.h