tools/power/turbostat: Obey allowed CPUs for system summary
authorZhang Rui <rui.zhang@intel.com>
Fri, 6 Oct 2023 10:35:26 +0000 (18:35 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 20 Oct 2023 06:20:07 +0000 (14:20 +0800)
commit0fe3752901370b83b63d4ddbce708b23c8e41ea9
tree190ce65b8fedbd153b69f8c00febd187ec45a15c
parentccf8a0528061b4ca5f5c0e73c8d888e7e6d8b054
tools/power/turbostat: Obey allowed CPUs for system summary

System summary should summarize the information for allowed CPUs instead
of all the present CPUs.

Introduce topology information for allowed CPUs, and use them to
get system summary.

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