]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/etnaviv: Convert timeouts to secs_to_jiffies()
authorEaswar Hariharan <eahariha@linux.microsoft.com>
Fri, 15 Nov 2024 21:26:26 +0000 (21:26 +0000)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 3 Dec 2024 17:29:48 +0000 (18:29 +0100)
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>
drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c

index 8c66715ee1c93afab595f7b7b58fcac5b5239a98..3a221923f15dcd859c2d7f6052e57bf4135727df 100644 (file)
@@ -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");