Skip to content

Commit

Permalink
drm/etnaviv: use deferrable timer for hangcheck handler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lucas Stach committed May 6, 2016
1 parent 6f3ffc1 commit 946dd8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/etnaviv/etnaviv_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 946dd8d

Please sign in to comment.