diff options
| author | Hanjun Guo <[email protected]> | 2020-05-19 06:25:21 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2020-05-19 15:41:17 +0000 |
| commit | ef7e7d65eb808b5d37b4596974526962a741e930 (patch) | |
| tree | 16641b04d8d8fb60b53aa04f1fe9f0fe343ac95d /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | cpuidle: sysfs: Fix the overlap for showing available governors (diff) | |
| download | kernel-ef7e7d65eb808b5d37b4596974526962a741e930.tar.gz kernel-ef7e7d65eb808b5d37b4596974526962a741e930.zip | |
cpuidle: sysfs: Accept governor name with 15 characters
CPUIDLE_NAME_LEN is 16, so it's possible to accept governor name
with 15 characters, but now store_current_governor() rejects
governor name with 15 characters as it returns -EINVAL if count
equals CPUIDLE_NAME_LEN.
Refactor the code to accept such case and simplify the code.
Signed-off-by: Hanjun Guo <[email protected]>
Reviewed-by: Doug Smythies <[email protected]>
Tested-by: Doug Smythies <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
