diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 71cc8a353a78..8b670e7ee404 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -1779,8 +1779,11 @@ i915_add_request(struct intel_ring_buffer *ring, | |||
1779 | ring->outstanding_lazy_request = false; | 1779 | ring->outstanding_lazy_request = false; |
1780 | 1780 | ||
1781 | if (!dev_priv->mm.suspended) { | 1781 | if (!dev_priv->mm.suspended) { |
1782 | mod_timer(&dev_priv->hangcheck_timer, | 1782 | if (i915_enable_hangcheck) { |
1783 | jiffies + msecs_to_jiffies(DRM_I915_HANGCHECK_PERIOD)); | 1783 | mod_timer(&dev_priv->hangcheck_timer, |
1784 | jiffies + | ||
1785 | msecs_to_jiffies(DRM_I915_HANGCHECK_PERIOD)); | ||
1786 | } | ||
1784 | if (was_empty) | 1787 | if (was_empty) |
1785 | queue_delayed_work(dev_priv->wq, | 1788 | queue_delayed_work(dev_priv->wq, |
1786 | &dev_priv->mm.retire_work, HZ); | 1789 | &dev_priv->mm.retire_work, HZ); |