Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <evan.quan@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Evan Quan and committed by
Alex Deucher
416e1fab 859e4659

-6
-2
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
··· 47 47 { 48 48 int i; 49 49 50 - cancel_delayed_work_sync(&adev->jpeg.idle_work); 51 - 52 50 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { 53 51 if (adev->jpeg.harvest_config & (1 << i)) 54 52 continue;
-1
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
··· 326 326 { 327 327 int i, j; 328 328 329 - cancel_delayed_work_sync(&adev->uvd.idle_work); 330 329 drm_sched_entity_destroy(&adev->uvd.entity); 331 330 332 331 for (j = 0; j < adev->uvd.num_uvd_inst; ++j) {
-1
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
··· 218 218 if (adev->vce.vcpu_bo == NULL) 219 219 return 0; 220 220 221 - cancel_delayed_work_sync(&adev->vce.idle_work); 222 221 drm_sched_entity_destroy(&adev->vce.entity); 223 222 224 223 amdgpu_bo_free_kernel(&adev->vce.vcpu_bo, &adev->vce.gpu_addr,
-2
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
··· 258 258 { 259 259 int i, j; 260 260 261 - cancel_delayed_work_sync(&adev->vcn.idle_work); 262 - 263 261 for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { 264 262 if (adev->vcn.harvest_config & (1 << j)) 265 263 continue;