Skip to content
Commit f638858d authored by Zhang Rui's avatar Zhang Rui
Browse files

tools/power/turbostat: Handle cgroup v2 cpu limitation



CPUs can be isolated via cgroup settings and turbostat should avoid
migrating to these CPUs, just like it does for the '-c' cpus.

Introduce cpu_effective_set to save the cgroup cpu limitation info from
/sys/fs/cgroup/cpuset.cpus.effective. And use cpu_allowed_set as the
intersection of cpu_present_set, cpu_effective_set and cpu_subset.

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 8c3dd2c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment