]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/i915: Remove unused no-shrinker-steal
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Aug 2016 09:14:15 +0000 (10:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Aug 2016 09:54:39 +0000 (10:54 +0100)
After removing the user of this wart, we can remove the wart entirely.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470388464-28458-10-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_shrinker.c

index 6eff31202336b5b136e65459b9941b040242254d..31a614fe9ed78c28eab55d128c1cd09bffd03fee 100644 (file)
@@ -1318,7 +1318,6 @@ struct i915_gem_mm {
        struct notifier_block oom_notifier;
        struct notifier_block vmap_notifier;
        struct shrinker shrinker;
-       bool shrinker_no_lock_stealing;
 
        /** LRU list of objects with fence regs on them. */
        struct list_head fence_list;
index 9b92b6470ccc7cc8b2ab5d0b8d41a64b3226c785..b80802b35353ee803f32a4fd9fd4eba0cefe39d5 100644 (file)
@@ -244,9 +244,6 @@ static bool i915_gem_shrinker_lock(struct drm_device *dev, bool *unlock)
                if (!mutex_is_locked_by(&dev->struct_mutex, current))
                        return false;
 
-               if (to_i915(dev)->mm.shrinker_no_lock_stealing)
-                       return false;
-
                *unlock = false;
        } else
                *unlock = true;