diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-10-20 03:45:21 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2023-10-24 07:37:46 +0200 |
commit | 8c3dd2c9e54273922ea71b2a4c0e77fc624c396b (patch) | |
tree | a37c467365d4d86d102f14923849b495a34d9b88 /tools/laptop | |
parent | tools/power/turbostat: Handle offlined CPUs in cpu_subset (diff) | |
download | linux-8c3dd2c9e54273922ea71b2a4c0e77fc624c396b.tar.xz linux-8c3dd2c9e54273922ea71b2a4c0e77fc624c396b.zip |
tools/power/turbostat: Abstrct function for parsing cpu string
Abstract parse_cpu_str() which can update any specified cpu_set by a
given cpu string. This can be used to handle further CPU limitations
from other sources like cgroup.
The cpu string parsing code is also enhanced to handle the strings that
have an extra '\n' before string terminator.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'tools/laptop')
0 files changed, 0 insertions, 0 deletions