From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:26 +0000 (+0000) Subject: drm/etnaviv: Convert timeouts to secs_to_jiffies() X-Git-Tag: v6.14-rc1~174^2~7^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16ab70e8dabe4f26b2de1c13e1937e190b0d2d24;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Christian Gmeiner Signed-off-by: Lucas Stach --- diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c index 8c66715ee1c93..3a221923f15dc 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");