Skip to contentSkip to conversation

drm/i915: Bail out once we've found the context object

PATCH Applied Damien Lespiau 2 participants 2 messages Jun 24, 2013 – Jun 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Bail out once we've found the context object

Once we've found the the context object programmed in CCID, there's no need to look the other objects in the list.

---
 drivers/gpu/drm/i915/i915_irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_irq.c +1 -0
index 7857430..e0f42c8 100644
@@ -1801,6 +1801,7 @@ static void i915_gem_record_active_context(struct intel_ring_buffer *ring,
 		if ((error->ccid & PAGE_MASK) == obj->gtt_offset) {
 			ering->ctx = i915_error_object_create_sized(dev_priv,
 								    obj, 1);
+			break;
 		}
 	}
 }
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 4 lines · Damien Lespiau

Once we've found the the context object programmed in CCID, there's no need to look the other objects in the list.

Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch