提交 bfb9a077 编写于 作者: C Christian König 提交者: Dave Airlie

drm/radeon: don't keep list of created fences.

It's never used and so practically superfluous.
Signed-off-by: NChristian König <deathsimple@vodafone.de>
Reviewed-by: NJerome Glisse <jglisse@redhat.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 adea5c27
...@@ -257,7 +257,6 @@ struct radeon_fence_driver { ...@@ -257,7 +257,6 @@ struct radeon_fence_driver {
uint32_t last_seq; uint32_t last_seq;
unsigned long last_activity; unsigned long last_activity;
wait_queue_head_t queue; wait_queue_head_t queue;
struct list_head created;
struct list_head emitted; struct list_head emitted;
struct list_head signaled; struct list_head signaled;
bool initialized; bool initialized;
......
...@@ -139,8 +139,6 @@ int radeon_fence_create(struct radeon_device *rdev, ...@@ -139,8 +139,6 @@ int radeon_fence_create(struct radeon_device *rdev,
struct radeon_fence **fence, struct radeon_fence **fence,
int ring) int ring)
{ {
unsigned long irq_flags;
*fence = kmalloc(sizeof(struct radeon_fence), GFP_KERNEL); *fence = kmalloc(sizeof(struct radeon_fence), GFP_KERNEL);
if ((*fence) == NULL) { if ((*fence) == NULL) {
return -ENOMEM; return -ENOMEM;
...@@ -153,10 +151,6 @@ int radeon_fence_create(struct radeon_device *rdev, ...@@ -153,10 +151,6 @@ int radeon_fence_create(struct radeon_device *rdev,
(*fence)->ring = ring; (*fence)->ring = ring;
(*fence)->semaphore = NULL; (*fence)->semaphore = NULL;
INIT_LIST_HEAD(&(*fence)->list); INIT_LIST_HEAD(&(*fence)->list);
write_lock_irqsave(&rdev->fence_lock, irq_flags);
list_add_tail(&(*fence)->list, &rdev->fence_drv[ring].created);
write_unlock_irqrestore(&rdev->fence_lock, irq_flags);
return 0; return 0;
} }
...@@ -411,7 +405,6 @@ static void radeon_fence_driver_init_ring(struct radeon_device *rdev, int ring) ...@@ -411,7 +405,6 @@ static void radeon_fence_driver_init_ring(struct radeon_device *rdev, int ring)
rdev->fence_drv[ring].cpu_addr = NULL; rdev->fence_drv[ring].cpu_addr = NULL;
rdev->fence_drv[ring].gpu_addr = 0; rdev->fence_drv[ring].gpu_addr = 0;
atomic_set(&rdev->fence_drv[ring].seq, 0); atomic_set(&rdev->fence_drv[ring].seq, 0);
INIT_LIST_HEAD(&rdev->fence_drv[ring].created);
INIT_LIST_HEAD(&rdev->fence_drv[ring].emitted); INIT_LIST_HEAD(&rdev->fence_drv[ring].emitted);
INIT_LIST_HEAD(&rdev->fence_drv[ring].signaled); INIT_LIST_HEAD(&rdev->fence_drv[ring].signaled);
init_waitqueue_head(&rdev->fence_drv[ring].queue); init_waitqueue_head(&rdev->fence_drv[ring].queue);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册