Commit 3f441b82 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin

drm/i915: Use appropriate spinlock flavour

We know this never runs from interrupt context so
don't need to use the flags variant.
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent fb1a38a9
...@@ -2970,11 +2970,9 @@ i915_gem_retire_requests(struct drm_device *dev) ...@@ -2970,11 +2970,9 @@ i915_gem_retire_requests(struct drm_device *dev)
i915_gem_retire_requests_ring(ring); i915_gem_retire_requests_ring(ring);
idle &= list_empty(&ring->request_list); idle &= list_empty(&ring->request_list);
if (i915.enable_execlists) { if (i915.enable_execlists) {
unsigned long flags; spin_lock_irq(&ring->execlist_lock);
spin_lock_irqsave(&ring->execlist_lock, flags);
idle &= list_empty(&ring->execlist_queue); idle &= list_empty(&ring->execlist_queue);
spin_unlock_irqrestore(&ring->execlist_lock, flags); spin_unlock_irq(&ring->execlist_lock);
intel_execlists_retire_requests(ring); intel_execlists_retire_requests(ring);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment