]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: cpu_cooling: Fix power calculation when CPUs are offline
authorKapileshwar Singh <kapileshwar.singh@arm.com>
Mon, 16 Mar 2015 12:00:51 +0000 (12:00 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 May 2015 04:27:54 +0000 (21:27 -0700)
commitb527f26aa8308b98c9b95b7b3ab90e217df78a47
tree7902429108c8910d4cff06a0887be36ccc190b29
parent94e393cce018b9c2ba895e2c3779b06300d830fe
thermal: cpu_cooling: Fix power calculation when CPUs are offline

Ensure that the CPU for which the frequency is being requested
is online. If none of the CPUs are online the requested power is
returned as 0.

Acked-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c