Re: [PATCH v3] cpupower : Fix cpupower working when cpu0 is offline

From: Shuah Khan
Date: Wed Nov 15 2017 - 10:23:11 EST


On 11/15/2017 01:40 AM, Abhishek Goel wrote:
> 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@xxxxxxxxxxxxxxxxxx>
> ---
> tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>

Thanks. I will queue this for 4.15-rc2

-- SHuah