drm/i915: Remove unused no-shrinker-steal
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
This commit is contained in:
Родитель
f3f6184c5f
Коммит
3b4e896f14
|
@ -1318,7 +1318,6 @@ struct i915_gem_mm {
|
||||||
struct notifier_block oom_notifier;
|
struct notifier_block oom_notifier;
|
||||||
struct notifier_block vmap_notifier;
|
struct notifier_block vmap_notifier;
|
||||||
struct shrinker shrinker;
|
struct shrinker shrinker;
|
||||||
bool shrinker_no_lock_stealing;
|
|
||||||
|
|
||||||
/** LRU list of objects with fence regs on them. */
|
/** LRU list of objects with fence regs on them. */
|
||||||
struct list_head fence_list;
|
struct list_head fence_list;
|
||||||
|
|
|
@ -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))
|
if (!mutex_is_locked_by(&dev->struct_mutex, current))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (to_i915(dev)->mm.shrinker_no_lock_stealing)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
*unlock = false;
|
*unlock = false;
|
||||||
} else
|
} else
|
||||||
*unlock = true;
|
*unlock = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче