diff options
author | Easwar Hariharan <eahariha@linux.microsoft.com> | 2025-02-19 20:30:37 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-04-24 16:04:01 +0200 |
commit | f4293c2baf6faa5f1a1638bcce698ed88d0d396e (patch) | |
tree | c2ec2c7b5937c2da940b66d4ef15534059cdeb1f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | bef4f1156b74721b7d111114538659031119b6f2 (diff) |
netfilter: xt_IDLETIMER: 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:
@depends on patch@
expression E;
@@
-msecs_to_jiffies(E * 1000)
+secs_to_jiffies(E)
-msecs_to_jiffies(E * MSEC_PER_SEC)
+secs_to_jiffies(E)
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions