tools/power/turbostat: Obey allowed CPUs when accessing CPU counters
authorZhang Rui <rui.zhang@intel.com>
Wed, 4 Oct 2023 05:52:02 +0000 (13:52 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 20 Oct 2023 02:27:09 +0000 (10:27 +0800)
commit4ede6d1ce7acba9cafe7df4e935b174623cd2181
treebe7eb1da03205de8ea4a262e00401bd61ed24564
parent71cfd1da9f0635ccd7124ad8b67b9aed596be491
tools/power/turbostat: Obey allowed CPUs when accessing CPU counters

for_all_cpus/for_all_cpus_2 are used for accessing the per CPU counters,
and they should follow the cpu_allowed_set instead of cpu_present_set.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
tools/power/x86/turbostat/turbostat.c