Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d3470d2 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau: remove unused ttm bo list



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent c020c9a8
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -51,9 +51,6 @@ nouveau_bo_del_ttm(struct ttm_buffer_object *bo)
	if (nvbo->tile)
	if (nvbo->tile)
		nv10_mem_expire_tiling(dev, nvbo->tile, NULL);
		nv10_mem_expire_tiling(dev, nvbo->tile, NULL);


	spin_lock(&dev_priv->ttm.bo_list_lock);
	list_del(&nvbo->head);
	spin_unlock(&dev_priv->ttm.bo_list_lock);
	kfree(nvbo);
	kfree(nvbo);
}
}


@@ -166,9 +163,6 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
	}
	}
	nvbo->channel = NULL;
	nvbo->channel = NULL;


	spin_lock(&dev_priv->ttm.bo_list_lock);
	list_add_tail(&nvbo->head, &dev_priv->ttm.bo_list);
	spin_unlock(&dev_priv->ttm.bo_list_lock);
	*pnvbo = nvbo;
	*pnvbo = nvbo;
	return 0;
	return 0;
}
}
+0 −2
Original line number Original line Diff line number Diff line
@@ -536,8 +536,6 @@ struct drm_nouveau_private {
		struct drm_global_reference mem_global_ref;
		struct drm_global_reference mem_global_ref;
		struct ttm_bo_global_ref bo_global_ref;
		struct ttm_bo_global_ref bo_global_ref;
		struct ttm_bo_device bdev;
		struct ttm_bo_device bdev;
		spinlock_t bo_list_lock;
		struct list_head bo_list;
		atomic_t validate_sequence;
		atomic_t validate_sequence;
	} ttm;
	} ttm;


+0 −2
Original line number Original line Diff line number Diff line
@@ -459,8 +459,6 @@ nouveau_mem_init(struct drm_device *dev)
		return ret;
		return ret;
	}
	}


	INIT_LIST_HEAD(&dev_priv->ttm.bo_list);
	spin_lock_init(&dev_priv->ttm.bo_list_lock);
	spin_lock_init(&dev_priv->tile.lock);
	spin_lock_init(&dev_priv->tile.lock);


	dev_priv->fb_available_size = dev_priv->vram_size;
	dev_priv->fb_available_size = dev_priv->vram_size;