aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorHanjun Guo <[email protected]>2020-05-19 06:25:21 +0000
committerRafael J. Wysocki <[email protected]>2020-05-19 15:41:17 +0000
commitef7e7d65eb808b5d37b4596974526962a741e930 (patch)
tree16641b04d8d8fb60b53aa04f1fe9f0fe343ac95d /tools/perf/scripts/python/net_dropmonitor.py
parentcpuidle: sysfs: Fix the overlap for showing available governors (diff)
downloadkernel-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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions