summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorEaswar Hariharan <eahariha@linux.microsoft.com>2024-12-12 20:33:01 +0300
committerJakub Kicinski <kuba@kernel.org>2024-12-16 00:59:14 +0300
commit734ff310d38cfdc27a1b3eac9fa83ff754356ae7 (patch)
tree7fb610d7f1436ce18f6a9105e013d757871843b5 /tools/perf/scripts/python/check-perf-trace.py
parenta35d00d5512accd337510fa4de756b743d331a87 (diff)
downloadlinux-734ff310d38cfdc27a1b3eac9fa83ff754356ae7.tar.xz
gve: Convert timeouts to secs_to_jiffies()
Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced secs_to_jiffies(). As the value here is a multiple of 1000, use secs_to_jiffies() instead of msecs_to_jiffies to avoid the multiplication. This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com> Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com> Link: https://patch.msgid.link/20241212-netdev-converge-secs-to-jiffies-v4-1-6dac97a6d6ab@linux.microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions