tools/power/turbostat: Introduce cpu_allowed_set
authorZhang Rui <rui.zhang@intel.com>
Fri, 6 Oct 2023 03:01:17 +0000 (11:01 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 20 Oct 2023 02:24:00 +0000 (10:24 +0800)
commit71cfd1da9f0635ccd7124ad8b67b9aed596be491
treede303909e2ff0c90bc1764be0aa8de2d30aa65c0
parent6b74a30b767e362eda7deeac52edcd546c5f6d8f
tools/power/turbostat: Introduce cpu_allowed_set

Turbostat supports "-c" parameter which limits output to system summary
plus the specified cpu-set. But some code still uses cpu_present_set to
read and dump the counters.

Introduce cpu_allowed_set for code that should obey the specified cpu-set.

No functional change.

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