diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2016-03-23 18:24:45 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-05-06 10:42:31 +0200 |
commit | 946dd8d5ec680c0831ed27a9bab8afa424f2c5a8 (patch) | |
tree | 8b3fa6ace8dcc2564cdbe12f67824e813ffb9a03 /drivers/gpu/drm/etnaviv | |
parent | 6f3ffc19157a14b182d9d0c449cd613cef421fe1 (diff) |
drm/etnaviv: use deferrable timer for hangcheck handler
The hangcheck handler is already running with very coarse timeouts,
so it doesn't hurt to combine this timer with other wakeups in the
system.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 306dde18a94a..049d00d8ded5 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -1528,8 +1528,8 @@ static int etnaviv_gpu_bind(struct device *dev, struct device *master, INIT_WORK(&gpu->recover_work, recover_worker); init_waitqueue_head(&gpu->fence_event); - setup_timer(&gpu->hangcheck_timer, hangcheck_handler, - (unsigned long)gpu); + setup_deferrable_timer(&gpu->hangcheck_timer, hangcheck_handler, + (unsigned long)gpu); priv->gpu[priv->num_gpus++] = gpu; |