commit | dbdc468f35ee827cab2753caa1c660bdb832243a | [log] [tgz] |
---|---|---|
author | Abhishek Goel <huntbag@linux.vnet.ibm.com> | Wed Nov 15 14:10:02 2017 +0530 |
committer | Shuah Khan <shuahkh@osg.samsung.com> | Wed Nov 15 08:37:42 2017 -0700 |
tree | 009fbaa59b5cde86d28b3fefa9d370dc2ef5e7b4 | |
parent | 53d1cd6b125fb9d69303516a1179ebc3b72f797a [diff] |
cpupower : Fix cpupower working when cpu0 is offline 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: Abhishek Goel <huntbag@linux.vnet.ibm.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>