summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2024-04-12 20:03:04 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-04-16 13:14:41 +0300
commita4022a332f437ae5b10921d66058ce98a2db2c20 (patch)
tree46aefecf4b056fb06d87edb0479d11e92f9fe8c6 /tools/perf/scripts/python
parent62d6d91db98a04defffd4ecfe168dd6ca80ef7d1 (diff)
downloadlinux-a4022a332f437ae5b10921d66058ce98a2db2c20.tar.xz
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 <liuhangbin@gmail.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Benjamin Poirier <bpoirier@nvidia.com> Reviewed-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions