drm/amdgpu: remove amdgpu_fence_recreate
authorChristian König <christian.koenig@amd.com>
Tue, 7 Jul 2015 16:44:01 +0000 (18:44 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:14 +0000 (16:50 -0400)
It's not used any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c

index 0220d98ba8bf3fa6c996898c2e05094f92b62cbf..4e8124749f9fab47798f296610848ece7db0a550 100644 (file)
@@ -429,8 +429,6 @@ int amdgpu_fence_driver_start_ring(struct amdgpu_ring *ring,
                                   unsigned irq_type);
 int amdgpu_fence_emit(struct amdgpu_ring *ring, void *owner,
                      struct amdgpu_fence **fence);
-int amdgpu_fence_recreate(struct amdgpu_ring *ring, void *owner,
-                         uint64_t seq, struct amdgpu_fence **fence);
 void amdgpu_fence_process(struct amdgpu_ring *ring);
 int amdgpu_fence_wait_next(struct amdgpu_ring *ring);
 int amdgpu_fence_wait_empty(struct amdgpu_ring *ring);
index a7189a1fa6a17dc308075535c6ddc0fcf3403270..e3629c923862cb3130238d179875cb6632cfa0cb 100644 (file)
@@ -135,38 +135,6 @@ int amdgpu_fence_emit(struct amdgpu_ring *ring, void *owner,
        return 0;
 }
 
-/**
- * amdgpu_fence_recreate - recreate a fence from an user fence
- *
- * @ring: ring the fence is associated with
- * @owner: creator of the fence
- * @seq: user fence sequence number
- * @fence: resulting amdgpu fence object
- *
- * Recreates a fence command from the user fence sequence number (all asics).
- * Returns 0 on success, -ENOMEM on failure.
- */
-int amdgpu_fence_recreate(struct amdgpu_ring *ring, void *owner,
-                         uint64_t seq, struct amdgpu_fence **fence)
-{
-       struct amdgpu_device *adev = ring->adev;
-
-       if (seq > ring->fence_drv.sync_seq[ring->idx])
-               return -EINVAL;
-
-       *fence = kmalloc(sizeof(struct amdgpu_fence), GFP_KERNEL);
-       if ((*fence) == NULL)
-               return -ENOMEM;
-
-       (*fence)->seq = seq;
-       (*fence)->ring = ring;
-       (*fence)->owner = owner;
-       fence_init(&(*fence)->base, &amdgpu_fence_ops,
-               &adev->fence_queue.lock, adev->fence_context + ring->idx,
-               (*fence)->seq);
-       return 0;
-}
-
 /**
  * amdgpu_fence_check_signaled - callback from fence_queue
  *