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>
Fri, 8 May 2020 18:44:11 +0000 (14:44 -0400)
commit1fe48ec08d9f2e26d893a6c05bd6c99a3490f9ef
tree11d8db21590c7d09582d35d1479ed89fa65d7cc4
parentee79be181aee2f59522fdf81c580aaed5753e3af
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