diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-21 06:25:52 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-21 10:21:50 -0400 |
commit | fe085f13c7901203445fd2ab26c0f499313b8258 (patch) | |
tree | c960eafb07e11a856cb325ca82e71f45140f040b /drivers/gpu/drm/i915/i915_gem_request.c | |
parent | 899f6204c0f8117d33226e586d3a630b3cf9bce0 (diff) |
drm/i915: Remove intel_ring.last_retired_head
Storing the position of the breadcrumb of the last retired request as
a separate last_retired_head is superfluous as we always copy that into
head prior to recalculation of the intel_ring.space.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170321102552.24357-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_request.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_request.c b/drivers/gpu/drm/i915/i915_gem_request.c index 0e8d1010cecb..dbfa9db2419d 100644 --- a/drivers/gpu/drm/i915/i915_gem_request.c +++ b/drivers/gpu/drm/i915/i915_gem_request.c | |||
@@ -295,7 +295,7 @@ static void i915_gem_request_retire(struct drm_i915_gem_request *request) | |||
295 | * completion order. | 295 | * completion order. |
296 | */ | 296 | */ |
297 | list_del(&request->ring_link); | 297 | list_del(&request->ring_link); |
298 | request->ring->last_retired_head = request->postfix; | 298 | request->ring->head = request->postfix; |
299 | if (!--request->i915->gt.active_requests) { | 299 | if (!--request->i915->gt.active_requests) { |
300 | GEM_BUG_ON(!request->i915->gt.awake); | 300 | GEM_BUG_ON(!request->i915->gt.awake); |
301 | mod_delayed_work(request->i915->wq, | 301 | mod_delayed_work(request->i915->wq, |