]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Sanitize GEM shrinker init and clean-up
authorImre Deak <imre.deak@intel.com>
Tue, 19 Jan 2016 13:26:28 +0000 (15:26 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 27 Jan 2016 15:43:14 +0000 (17:43 +0200)
commit53b17224fd0a61091b6eb5a2070b35f5390a396e
treec06c2283bd3cfcc894da3510d49790a0356c59aa
parente68893d321c578401eea94a992331025e3e95694
drm/i915: Sanitize GEM shrinker init and clean-up

Factor out the common GEM shrinker clean-up code and call the shrinker
init function from the same function from where the corresponding
shrinker clean-up function is called. Also add sanity checking to the
shrinker and OOM registration calls.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453209992-25995-4-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_shrinker.c