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

Commit d8f75b4c authored by Abhishek Goel's avatar Abhishek Goel Committed by Greg Kroah-Hartman
Browse files

cpupower : Fix cpupower working when cpu0 is offline




[ Upstream commit dbdc468f35ee827cab2753caa1c660bdb832243a ]

cpuidle_monitor used to assume that cpu0 is always online which is not
a valid assumption on POWER machines. This patch fixes this by getting
the cpu on which the current thread is running, instead of always using
cpu0 for monitoring which may not be online.

Signed-off-by: default avatarAbhishek Goel <huntbag@linux.vnet.ibm.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 82e57cdc
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