diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-14 16:50:28 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-17 14:43:31 -0700 |
commit | 31169714fc928aed4e945b959dca2bedd259b9c9 (patch) | |
tree | 3cd6aa12bd7da1e4202607597b3baf9a07f48290 /drivers/gpu/drm/i915/i915_drv.c | |
parent | 725ceaa08a98fcdb1ec1c302700e33b629aece4b (diff) | |
download | lwn-31169714fc928aed4e945b959dca2bedd259b9c9.tar.gz lwn-31169714fc928aed4e945b959dca2bedd259b9c9.zip |
drm/i915: Register a shrinker to free inactive lists under memory pressure
This should help GEM handle memory pressure sitatuions more gracefully.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 1f9e4503b072..c57c1744cecf 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -362,6 +362,8 @@ static int __init i915_init(void) { driver.num_ioctls = i915_max_ioctl; + i915_gem_shrinker_init(); + /* * If CONFIG_DRM_I915_KMS is set, default to KMS unless * explicitly disabled with the module pararmeter. @@ -388,6 +390,7 @@ static int __init i915_init(void) static void __exit i915_exit(void) { + i915_gem_shrinker_exit(); drm_exit(&driver); } |