]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Do not return -1 from shrinker when nr_to_scan == 0
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Oct 2010 21:35:07 +0000 (22:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Oct 2010 21:35:07 +0000 (22:35 +0100)
commit15dfd46a25f1b507b4b755095888947106a8ca51
tree10c5e8c5c5dec1423954de91be41c04962ddeda1
parent9a1d3f2f2bce4db232539fd10436e26bcec2cd1d
drm/i915: Do not return -1 from shrinker when nr_to_scan == 0

The error code is only expected during the actual pruning and not during
the first measurement (nr_to_scan == 0) pass.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c