]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1fd057392ab13c25e7a0f5f9c0409cf501274b7
treeadf51870c8e613ec783f701a683aee5d0556e15b
parentbf53b979a119624f64981f507e4106e486fd2096
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