Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 097e9cb2 authored by Kapileshwar Singh's avatar Kapileshwar Singh Committed by Kevin Hilman
Browse files

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: default avatarJavi Merino <javi.merino@arm.com>
Signed-off-by: default avatarKapileshwar Singh <kapileshwar.singh@arm.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
(cherry picked from commit dd658e02357ec879edd0c62ee1f3a19c92b0b027)
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parent aa4ad8bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment