aboutsummaryrefslogtreecommitdiffstats
diff options
authorEaswar Hariharan <eahariha@linux.microsoft.com>2024-11-15 21:26:26 +0000
committerLucas Stach <l.stach@pengutronix.de>2024-12-03 18:29:48 +0100
commit16ab70e8dabe4f26b2de1c13e1937e190b0d2d24 (patch)
tree3e66770a6b6837a0c7a645baba8b7d5f618f051b
parent834f304192834d6f0941954f3277ae0ba11a9a86 (diff)
downloadlinux-16ab70e8dabe4f26b2de1c13e1937e190b0d2d24.tar.gz
drm/etnaviv: Convert timeouts to secs_to_jiffies()
Changes made 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: Christian Gmeiner <cgmeiner@igalia.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
-rw-r--r--drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
index 8c66715ee1c93a..3a221923f15dcd 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
@@ -99,7 +99,7 @@ retry:
mutex_unlock(&suballoc->lock);
ret = wait_event_interruptible_timeout(suballoc->free_event,
suballoc->free_space,
- msecs_to_jiffies(10 * 1000));
+ secs_to_jiffies(10));
if (!ret) {
dev_err(suballoc->dev,
"Timeout waiting for cmdbuf space\n");