diff options
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index 639545cb51d..41092d1a83e 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -4346,20 +4346,6 @@ inteldrm_hung(void *arg, void *reset_type) * they're now irrelavent. */ mtx_enter(&dev_priv->list_lock); - while ((obj_priv = TAILQ_FIRST(&dev_priv->mm.active_list)) != NULL) { - drm_lock_obj(&obj_priv->obj); - if (obj_priv->obj.write_domain & I915_GEM_GPU_DOMAINS) { - TAILQ_REMOVE(&dev_priv->mm.gpu_write_list, - obj_priv, write_list); - atomic_clearbits_int(&obj_priv->obj.do_flags, - I915_GPU_WRITE); - obj_priv->obj.write_domain &= ~I915_GEM_GPU_DOMAINS; - } - /* unlocks object and list */ - i915_gem_object_move_to_inactive_locked(&obj_priv->obj);; - mtx_enter(&dev_priv->list_lock); - } - while ((obj_priv = TAILQ_FIRST(&dev_priv->mm.flushing_list)) != NULL) { drm_lock_obj(&obj_priv->obj); if (obj_priv->obj.write_domain & I915_GEM_GPU_DOMAINS) { |