diff options
| author | 2023-10-20 09:39:22 +0800 | |
|---|---|---|
| committer | 2023-10-24 13:38:09 +0800 | |
| commit | f638858da0925b29122f05135663013dc240eaf9 (patch) | |
| tree | 2a4b6e7a67054f028020c43a8a204f630203ba48 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | tools/power/turbostat: Abstrct function for parsing cpu string (diff) | |
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: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
