Skip to content

Commit 16ab70e

Browse files
easwarhlynxeye-dev
authored andcommitted
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 <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Signed-off-by: Lucas Stach <[email protected]>
1 parent 834f304 commit 16ab70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int etnaviv_cmdbuf_init(struct etnaviv_cmdbuf_suballoc *suballoc,
9999
mutex_unlock(&suballoc->lock);
100100
ret = wait_event_interruptible_timeout(suballoc->free_event,
101101
suballoc->free_space,
102-
msecs_to_jiffies(10 * 1000));
102+
secs_to_jiffies(10));
103103
if (!ret) {
104104
dev_err(suballoc->dev,
105105
"Timeout waiting for cmdbuf space\n");

0 commit comments

Comments
 (0)