drm/etnaviv: use deferrable timer for hangcheck handler
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 Mar 2016 17:24:45 +0000 (18:24 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 6 May 2016 08:42:31 +0000 (10:42 +0200)
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>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c

index 306dde18a94a01c8cc623a96bd7743c441087309..049d00d8ded50a374d8aff20e03e133a1fb89b96 100644 (file)
@@ -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;