Skip to content
Snippets Groups Projects
Commit 8c3dd2c9 authored by Zhang Rui's avatar Zhang Rui
Browse files

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: default avatarZhang Rui <rui.zhang@intel.com>
parent c25ef0e5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment