]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Extract i915_gem_shrinker.c
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Mar 2015 09:46:04 +0000 (10:46 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:15 +0000 (11:48 +0100)
commitbe6a03769504753696033b7595d4dcbc4a16d088
treedb20e3cab190503e4f0e26ae2207cf9b837c8546
parent6f4b12f89c78fd0030aa51ead17eaf234108f60d
drm/i915: Extract i915_gem_shrinker.c

Two code changes:
- Extract i915_gem_shrinker_init.
- Inline i915_gem_object_is_purgeable since we open-code it everywhere
  else too.

This already has the benefit of pulling all the shrinker code
together, next patch adds a bit of kerneldoc.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_shrinker.c [new file with mode: 0644]