aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2024-04-12 19:03:04 +0200
committerPaolo Abeni <[email protected]>2024-04-16 12:14:41 +0200
commita4022a332f437ae5b10921d66058ce98a2db2c20 (patch)
tree46aefecf4b056fb06d87edb0479d11e92f9fe8c6 /tools/perf/scripts/python/Perf-Trace-Util/lib
parent62d6d91db98a04defffd4ecfe168dd6ca80ef7d1 (diff)
selftests: net: Unify code of busywait() and slowwait()
Bodies of busywait() and slowwait() functions are almost identical. Extract the common code into a helper, loopy_wait, and convert busywait() and slowwait() into trivial wrappers. Moreover, the fact that slowwait() uses seconds for units is really not intuitive, and the comment does not help much. Instead make the unit part of the name of the argument to further clarify what units are expected. Cc: Hangbin Liu <[email protected]> Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Benjamin Poirier <[email protected]> Reviewed-by: Hangbin Liu <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions