diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2013-02-23 09:54:28 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@openbsd.org> | 2013-02-23 09:54:28 +0100 |
commit | 3786837b53a9eed6ed89de82ec2d41ef4edf2729 (patch) | |
tree | 0185ae711d170d11f07cd2fbc3253a450a98313d /sys/dev/pci/drm/i915_gem_evict.c | |
parent | 77b7d1c0e068fefca67be929579d6d43043379d8 (diff) |
Eliminate request_lock. Linux doesn't have it and the kernel lock should be
good enough to protect us.
Diffstat (limited to 'sys/dev/pci/drm/i915_gem_evict.c')
-rw-r--r-- | sys/dev/pci/drm/i915_gem_evict.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/i915_gem_evict.c b/sys/dev/pci/drm/i915_gem_evict.c index 70a5019ebe4..592c7dda3a2 100644 --- a/sys/dev/pci/drm/i915_gem_evict.c +++ b/sys/dev/pci/drm/i915_gem_evict.c @@ -93,14 +93,12 @@ i915_gem_evict_something(struct inteldrm_softc *dev_priv, size_t min_size) * leave us a buffer to evict. */ found = 0; - mtx_enter(&dev_priv->request_lock); for_each_ring(ring, dev_priv, i) { if (!list_empty(&ring->request_list)) { request = list_first_entry(&ring->request_list, struct drm_i915_gem_request, list); seqno = request->seqno; - mtx_leave(&dev_priv->request_lock); ret = i915_wait_seqno(request->ring, seqno); if (ret) @@ -112,7 +110,6 @@ i915_gem_evict_something(struct inteldrm_softc *dev_priv, size_t min_size) } if (found) continue; - mtx_leave(&dev_priv->request_lock); /* If we didn't have anything on the request list but there * are buffers awaiting a flush, emit one and try again. |