aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-10-22 09:16:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-10-30 01:58:22 -0400
commit6ef68c17d40e1e7e291ca513627a0d2a13ae095f (patch)
treead475374dbe1d1ba05889646bec77575ac584254 /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
parent16545c32a5242634a51c6906533750cf1db54879 (diff)
drm/amdgpu: remove amdgpu_fence_ref/unref
Just move the remaining users to fence_put/get. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-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.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index c4bb28292b9f..b912539420e4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -417,36 +417,6 @@ int amdgpu_fence_wait_empty(struct amdgpu_ring *ring)
417} 417}
418 418
419/** 419/**
420 * amdgpu_fence_ref - take a ref on a fence
421 *
422 * @fence: amdgpu fence object
423 *
424 * Take a reference on a fence (all asics).
425 * Returns the fence.
426 */
427struct amdgpu_fence *amdgpu_fence_ref(struct amdgpu_fence *fence)
428{
429 fence_get(&fence->base);
430 return fence;
431}
432
433/**
434 * amdgpu_fence_unref - remove a ref on a fence
435 *
436 * @fence: amdgpu fence object
437 *
438 * Remove a reference on a fence (all asics).
439 */
440void amdgpu_fence_unref(struct amdgpu_fence **fence)
441{
442 struct amdgpu_fence *tmp = *fence;
443
444 *fence = NULL;
445 if (tmp)
446 fence_put(&tmp->base);
447}
448
449/**
450 * amdgpu_fence_count_emitted - get the count of emitted fences 420 * amdgpu_fence_count_emitted - get the count of emitted fences
451 * 421 *
452 * @ring: ring the fence is associated with 422 * @ring: ring the fence is associated with