drm/amdgpu: drop unnecessary cancel_delayed_work_sync on PG ungate
authorEvan Quan <evan.quan@amd.com>
Thu, 30 Apr 2020 03:24:02 +0000 (11:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 May 2020 20:51:05 +0000 (16:51 -0400)
commit47891bf1da31ccba95974b58a853a346924ed341
tree7f42ebe4460b0bbf043d02c5508179a0fd07b3c0
parent2536c4b0dd88d1f9031285bbfe9e6986790ce056
drm/amdgpu: drop unnecessary cancel_delayed_work_sync on PG ungate

As this is already properly handled in amdgpu_gfx_off_ctrl(). In fact,
this unnecessary cancel_delayed_work_sync may leave a small time window
for race condition and is dangerous.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c