aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-03-11 09:15:02 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-03-14 13:43:47 -0400
commit77163f074aa68b06f6de2f2fc271f4a828d56da2 (patch)
tree3e18173849a2ecb45302f4643a034197243072f6 /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
parentf104fbcb8fde4e03b5bc9cbec95d5898f0be5882 (diff)
drm/amdgpu: remove amdgpu_fence_wait_next
Not used any more. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index 83599f2a0387..fabb01e8c8d5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -282,26 +282,6 @@ static int amdgpu_fence_ring_wait_seq(struct amdgpu_ring *ring, uint64_t seq)
282} 282}
283 283
284/** 284/**
285 * amdgpu_fence_wait_next - wait for the next fence to signal
286 *
287 * @adev: amdgpu device pointer
288 * @ring: ring index the fence is associated with
289 *
290 * Wait for the next fence on the requested ring to signal (all asics).
291 * Returns 0 if the next fence has passed, error for all other cases.
292 * Caller must hold ring lock.
293 */
294int amdgpu_fence_wait_next(struct amdgpu_ring *ring)
295{
296 uint64_t seq = atomic64_read(&ring->fence_drv.last_seq) + 1ULL;
297
298 if (seq >= ring->fence_drv.sync_seq)
299 return -ENOENT;
300
301 return amdgpu_fence_ring_wait_seq(ring, seq);
302}
303
304/**
305 * amdgpu_fence_wait_empty - wait for all fences to signal 285 * amdgpu_fence_wait_empty - wait for all fences to signal
306 * 286 *
307 * @adev: amdgpu device pointer 287 * @adev: amdgpu device pointer