diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-24 13:22:52 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-05-03 05:18:10 -0400 |
commit | a39d7efc6200d05b9ca3cfeec5dd82f6dd03f4e8 (patch) | |
tree | 2876da1a00718a73a7817154583a85ccae667414 /drivers/gpu/drm/i915/i915_gem.c | |
parent | 8325a09dd0b138484ccff66b2987f49fa3813ec8 (diff) |
drm/i915: Remove i915_gem_evict_inactive()
This was only used by one external caller who would just be as happy
with evict-everything, so perform the replacement and make the function
private.
In the process we note that unbinding the inactive list should not fail,
and make it a warning instead.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index ad2a6924d9ce..2fc7c55e0e05 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -3455,13 +3455,8 @@ i915_gem_idle(struct drm_device *dev) | |||
3455 | } | 3455 | } |
3456 | 3456 | ||
3457 | /* Under UMS, be paranoid and evict. */ | 3457 | /* Under UMS, be paranoid and evict. */ |
3458 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) { | 3458 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) |
3459 | ret = i915_gem_evict_inactive(dev, false); | 3459 | i915_gem_evict_everything(dev, false); |
3460 | if (ret) { | ||
3461 | mutex_unlock(&dev->struct_mutex); | ||
3462 | return ret; | ||
3463 | } | ||
3464 | } | ||
3465 | 3460 | ||
3466 | i915_gem_reset_fences(dev); | 3461 | i915_gem_reset_fences(dev); |
3467 | 3462 | ||