cpupowerutils: bench - Fix cpu online check
authorAbhishek Goel <huntbag@linux.vnet.ibm.com>
Tue, 7 Nov 2017 09:47:55 +0000 (15:17 +0530)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 15 Nov 2017 15:37:35 +0000 (08:37 -0700)
commit53d1cd6b125fb9d69303516a1179ebc3b72f797a
tree9721c61a3a20ba73b625786dfa9b82aec968fc1d
parent69b6f8a9b7961efd7dcc11ab9b1d5be55ed8a15e
cpupowerutils: bench - Fix cpu online check

cpupower_is_cpu_online was incorrectly checking for 0. This patch fixes
this by checking for 1 when the cpu is online.

Signed-off-by: Abhishek Goel <huntbag@linux.vnet.ibm.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/power/cpupower/bench/system.c