mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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>
This commit is contained in:
parent
834f304192
commit
16ab70e8da
|
|
@ -99,7 +99,7 @@ int etnaviv_cmdbuf_init(struct etnaviv_cmdbuf_suballoc *suballoc,
|
|||
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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user