]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/mlx5: convert timeouts to secs_to_jiffies()
authorEaswar Hariharan <eahariha@linux.microsoft.com>
Wed, 19 Feb 2025 21:36:40 +0000 (21:36 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 18:03:13 +0000 (15:03 -0300)
commit16b82367aa28bd31795e720548421b58824108e1
treecd4c323df8db6707a2bba74a33a97351841f29a6
parent0af2f6be1b4281385b618cb86ad946eded089ac8
RDMA/mlx5: 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)

Link: https://patch.msgid.link/r/20250219-rdma-secs-to-jiffies-v1-2-b506746561a9@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mr.c