OSDN Git Service

drm/i915: Remove the duplicated logic between the two shrink phases
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Oct 2014 09:29:51 +0000 (10:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 3 Oct 2014 11:52:15 +0000 (13:52 +0200)
commit60a5372777b05c78ec25f1bc1883cb59b2418255
tree655e1dcbca85d68ec0950b693cac2e6e11b81fc0
parentfca52a5565fbf4abc4ee4fca81842dc1f6ecdce8
drm/i915: Remove the duplicated logic between the two shrink phases

We can use the same logic to walk the different bound/unbound lists
during shrinker (as the unbound list is a degenerate case of the bound
list), slightly compacting the code.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c