]> 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)
commit9b5377a45e748997576d522e509f3e65ee6879a5
tree655e1dcbca85d68ec0950b693cac2e6e11b81fc0
parenta732613781c25901828632921e2f26d50fd959e0
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