diff options
| author | Easwar Hariharan <[email protected]> | 2024-12-12 17:33:01 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-15 21:59:14 +0000 |
| commit | 734ff310d38cfdc27a1b3eac9fa83ff754356ae7 (patch) | |
| tree | 7fb610d7f1436ce18f6a9105e013d757871843b5 /net/unix/unix_bpf.c | |
| parent | netlink: specs: add uint, sint to netlink-raw schema (diff) | |
| download | kernel-734ff310d38cfdc27a1b3eac9fa83ff754356ae7.tar.gz kernel-734ff310d38cfdc27a1b3eac9fa83ff754356ae7.zip | |
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 <[email protected]>
Reviewed-by: Praveen Kaligineedi <[email protected]>
Link: https://patch.msgid.link/20241212-netdev-converge-secs-to-jiffies-v4-1-6dac97a6d6ab@linux.microsoft.com
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
