drm/i915: Align the hangcheck wakeup to the nearest second
[deliverable/linux.git] / drivers / gpu / drm / i915 / i915_gem.c
index 2f76905ab2b07408dd3c784799c7177f5d0ff6c0..ca3ab04c53739e26a0a42f6ff6d24481570ad82d 100644 (file)
@@ -2015,8 +2015,7 @@ i915_add_request(struct intel_ring_buffer *ring,
        if (!dev_priv->mm.suspended) {
                if (i915_enable_hangcheck) {
                        mod_timer(&dev_priv->hangcheck_timer,
-                                 jiffies +
-                                 msecs_to_jiffies(DRM_I915_HANGCHECK_PERIOD));
+                                 round_jiffies_up(jiffies + DRM_I915_HANGCHECK_JIFFIES));
                }
                if (was_empty) {
                        queue_delayed_work(dev_priv->wq,
This page took 0.027964 seconds and 5 git commands to generate.