]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a480e28e6b5821ed2eb97b399e1b76f45c1c1fc
tree655e1dcbca85d68ec0950b693cac2e6e11b81fc0
parent39b1810eb89bbf5bfb5c0d9753309cdbecd02816
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