Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Easwar Hariharan and committed by
Lucas Stach
16ab70e8 834f3041

+1 -1
+1 -1
drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
··· 99 99 mutex_unlock(&suballoc->lock); 100 100 ret = wait_event_interruptible_timeout(suballoc->free_event, 101 101 suballoc->free_space, 102 - msecs_to_jiffies(10 * 1000)); 102 + secs_to_jiffies(10)); 103 103 if (!ret) { 104 104 dev_err(suballoc->dev, 105 105 "Timeout waiting for cmdbuf space\n");