]> www.infradead.org Git - users/hch/misc.git/commit
gve: Convert timeouts to secs_to_jiffies()
authorEaswar Hariharan <eahariha@linux.microsoft.com>
Thu, 12 Dec 2024 17:33:01 +0000 (17:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Dec 2024 21:59:14 +0000 (13:59 -0800)
commit734ff310d38cfdc27a1b3eac9fa83ff754356ae7
tree7fb610d7f1436ce18f6a9105e013d757871843b5
parenta35d00d5512accd337510fa4de756b743d331a87
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>
drivers/net/ethernet/google/gve/gve_tx_dqo.c