Skip to content

Commit 416e1fa

Browse files
Evan Quanalexdeucher
authored andcommitted
drm/amdgpu: drop redundant cancel_delayed_work_sync call
As those _sw_fini() APIs follow just after _suspend() APIs. And the cancel_delayed_work_sync was already called in latter. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 859e465 commit 416e1fa

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ int amdgpu_jpeg_sw_fini(struct amdgpu_device *adev)
4747
{
4848
int i;
4949

50-
cancel_delayed_work_sync(&adev->jpeg.idle_work);
51-
5250
for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) {
5351
if (adev->jpeg.harvest_config & (1 << i))
5452
continue;

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ int amdgpu_uvd_sw_fini(struct amdgpu_device *adev)
326326
{
327327
int i, j;
328328

329-
cancel_delayed_work_sync(&adev->uvd.idle_work);
330329
drm_sched_entity_destroy(&adev->uvd.entity);
331330

332331
for (j = 0; j < adev->uvd.num_uvd_inst; ++j) {

drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ int amdgpu_vce_sw_fini(struct amdgpu_device *adev)
218218
if (adev->vce.vcpu_bo == NULL)
219219
return 0;
220220

221-
cancel_delayed_work_sync(&adev->vce.idle_work);
222221
drm_sched_entity_destroy(&adev->vce.entity);
223222

224223
amdgpu_bo_free_kernel(&adev->vce.vcpu_bo, &adev->vce.gpu_addr,

drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ int amdgpu_vcn_sw_fini(struct amdgpu_device *adev)
258258
{
259259
int i, j;
260260

261-
cancel_delayed_work_sync(&adev->vcn.idle_work);
262-
263261
for (j = 0; j < adev->vcn.num_vcn_inst; ++j) {
264262
if (adev->vcn.harvest_config & (1 << j))
265263
continue;

0 commit comments

Comments
 (0)