From: Chris Wilson Date: Fri, 24 Feb 2012 00:27:21 +0000 (+0000) Subject: drm/i915: Only bump refcnt on objects scheduled for eviction X-Git-Tag: v3.4-rc1~143^2~18^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b67082425350a0a47cde7ebfb7914a72c4c97d0f;p=pandora-kernel.git drm/i915: Only bump refcnt on objects scheduled for eviction Incrementing the reference count on all objects walked when searching for space in the aperture is a non-neglible amount of overhead. In fact, we only need to hold on to a reference for objects that we will evict, so we can therefore delay the referencing until we find a suitable hole and only add those objects that fall inside. Signed-off-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed