aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorNayan Deshmukh <nayan26deshmukh@gmail.com>2018-07-20 08:21:05 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-25 16:06:19 -0400
commitcdc50176597cb44ce25eb7331c450058775b8d2a (patch)
tree3a225ac827c904a893f45677e08c51d75170d179 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parentbf314ca3f10d4ba4335808dc678631908881db8b (diff)
drm/scheduler: modify API to avoid redundancy
entity has a scheduler field and we don't need the sched argument in any of the functions where entity is provided. Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 6039f8e21358..8c4358e36c87 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1925,8 +1925,7 @@ void amdgpu_ttm_set_buffer_funcs_status(struct amdgpu_device *adev, bool enable)
1925 return; 1925 return;
1926 } 1926 }
1927 } else { 1927 } else {
1928 drm_sched_entity_destroy(adev->mman.entity.sched, 1928 drm_sched_entity_destroy(&adev->mman.entity);
1929 &adev->mman.entity);
1930 dma_fence_put(man->move); 1929 dma_fence_put(man->move);
1931 man->move = NULL; 1930 man->move = NULL;
1932 } 1931 }