drm/i915: Simplify shrinker locking
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 7 Apr 2017 10:49:35 +0000 (13:49 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 7 Apr 2017 11:33:39 +0000 (14:33 +0300)
commite92075ff7dc54305bd5709a758ffe825aef35e8f
treeadf51870c8e613ec783f701a683aee5d0556e15b
parent8f612d055183545070ca1009ac2eb1f2e044cc20
drm/i915: Simplify shrinker locking

By using the same structure for both interruptible and
uninterruptible locking in shrinker code, combined with the
information that mm.interruptible is only being written to, the
code can be greatly simplified.

Also removing the i915_gem_ prefix from the locking functions so
that nobody in their wildest dreams considers exporting them.

Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1491562175-27680-1-git-send-email-joonas.lahtinen@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_shrinker.c
drivers/gpu/drm/i915/intel_display.c