]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu: remove adev and fence from amdgpu_sync_free
authorChristian König <christian.koenig@amd.com>
Wed, 3 Feb 2016 14:11:39 +0000 (15:11 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:17:17 +0000 (14:17 -0500)
Just leftovers from the semaphores.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c

index a783c684b49b0d6b972c52dc0d93e5e88b4a93e6..6eb5550a6f169665b83c555daa596868f6f5b5e4 100644 (file)
@@ -644,8 +644,7 @@ int amdgpu_sync_resv(struct amdgpu_device *adev,
                     void *owner);
 struct fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync);
 int amdgpu_sync_wait(struct amdgpu_sync *sync);
-void amdgpu_sync_free(struct amdgpu_device *adev, struct amdgpu_sync *sync,
-                     struct fence *fence);
+void amdgpu_sync_free(struct amdgpu_sync *sync);
 
 /*
  * GART structures, functions & helpers
index 40c9779993c86b7c6c3fb55ab9754c45c892edf0..d7cd408f7b6657292761401033be94e028bd02c0 100644 (file)
@@ -93,7 +93,7 @@ int amdgpu_ib_get(struct amdgpu_ring *ring, struct amdgpu_vm *vm,
  */
 void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib)
 {
-       amdgpu_sync_free(adev, &ib->sync, &ib->fence->base);
+       amdgpu_sync_free(&ib->sync);
        amdgpu_sa_bo_free(adev, &ib->sa_bo, &ib->fence->base);
        if (ib->fence)
                fence_put(&ib->fence->base);
index 1d348f8ae126fdec882592b6e8ae0ca4a645d333..c15be00de9046ea2b4a7b2b1a3762cf518ec3d5d 100644 (file)
@@ -240,15 +240,11 @@ int amdgpu_sync_wait(struct amdgpu_sync *sync)
 /**
  * amdgpu_sync_free - free the sync object
  *
- * @adev: amdgpu_device pointer
  * @sync: sync object to use
- * @fence: fence to use for the free
  *
  * Free the sync object.
  */
-void amdgpu_sync_free(struct amdgpu_device *adev,
-                     struct amdgpu_sync *sync,
-                     struct fence *fence)
+void amdgpu_sync_free(struct amdgpu_sync *sync)
 {
        struct amdgpu_sync_entry *e;
        struct hlist_node *tmp;