tools/power/turbostat: Obey allowed CPUs during startup
authorZhang Rui <rui.zhang@intel.com>
Wed, 4 Oct 2023 06:25:25 +0000 (14:25 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 20 Oct 2023 02:27:09 +0000 (10:27 +0800)
commit7bb3fe27ad4f62039b2ac80a2147452a608b474f
tree9a52c2aa42f80f735307b3d8f8f571345dd3bdb1
parent4ede6d1ce7acba9cafe7df4e935b174623cd2181
tools/power/turbostat: Obey allowed CPUs during startup

Set turbostat CPU affinity to make sure turbostat is running on one of
the allowed CPUs.

Set base_cpu to the first allowed CPU so that some platform information
is dumped using one of the allowed CPUs.

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