]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
thermal: cpu_cooling: 'freq' can't be zero in cpufreq_state2power()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 10:27:23 +0000 (15:57 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:32:59 +0000 (17:32 -0700)
commitcb1b631864ad7e34324ceccb73d0226dd00ad90d
tree5c1c1834844c1c7d86ac7e6fc8750998c4a84bee
parent53ca1ece60a719e23f686c647cb05d9e12a31974
thermal: cpu_cooling: 'freq' can't be zero in cpufreq_state2power()

The frequency table shouldn't have any zero frequency entries and so
such a check isn't required. Though it would be better to make sure
'state' is within limits.

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