]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drivers: hv: Convert open-coded timeouts to secs_to_jiffies()
authorEaswar Hariharan <eahariha@linux.microsoft.com>
Wed, 30 Oct 2024 17:47:36 +0000 (17:47 +0000)
committerWei Liu <wei.liu@kernel.org>
Mon, 9 Dec 2024 18:44:14 +0000 (18:44 +0000)
commit67b5e1042d90d8a9814f22312c1147b4c9cd501a
tree7fb2c60f22eb340f3e4a70d0a95320d4308ddda2
parent91ae69c7ed9e262f24240c425ad1eef2cf6639b7
drivers: hv: Convert open-coded timeouts to secs_to_jiffies()

We have several places where timeouts are open-coded as N (seconds) * HZ,
but best practice is to use the utility functions from jiffies.h. Convert
the timeouts to be compliant. This doesn't fix any bugs, it's a simple code
improvement.

Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20241030-open-coded-timeouts-v3-2-9ba123facf88@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20241030-open-coded-timeouts-v3-2-9ba123facf88@linux.microsoft.com>
drivers/hv/hv_balloon.c
drivers/hv/hv_kvp.c
drivers/hv/hv_snapshot.c
drivers/hv/vmbus_drv.c