diff options
author | Christian König <christian.koenig@amd.com> | 2019-01-09 09:36:29 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-02-13 17:47:11 -0500 |
commit | e2fb6e0a7a2194f5ef1fada737217aad71e29e4d (patch) | |
tree | b3670f22105227b195bf5a38d2cdda1482b73e03 /drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | |
parent | 16065fcdd19ddb9e093192914ac863884f308766 (diff) |
drm/amdgpu: cleanup amdgpu_ih_process a bit more
Remove the callback and call the dispatcher directly.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c index d0a5db777b6d..1c50be3ab8a9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | |||
@@ -140,9 +140,7 @@ void amdgpu_ih_ring_fini(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih) | |||
140 | * Interrupt hander (VI), walk the IH ring. | 140 | * Interrupt hander (VI), walk the IH ring. |
141 | * Returns irq process return code. | 141 | * Returns irq process return code. |
142 | */ | 142 | */ |
143 | int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih, | 143 | int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih) |
144 | void (*callback)(struct amdgpu_device *adev, | ||
145 | struct amdgpu_ih_ring *ih)) | ||
146 | { | 144 | { |
147 | u32 wptr; | 145 | u32 wptr; |
148 | 146 | ||
@@ -162,7 +160,7 @@ restart_ih: | |||
162 | rmb(); | 160 | rmb(); |
163 | 161 | ||
164 | while (ih->rptr != wptr) { | 162 | while (ih->rptr != wptr) { |
165 | callback(adev, ih); | 163 | amdgpu_irq_dispatch(adev, ih); |
166 | ih->rptr &= ih->ptr_mask; | 164 | ih->rptr &= ih->ptr_mask; |
167 | } | 165 | } |
168 | 166 | ||