]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48980ce538489a2d64ac8230b5bcb26b47dec2cd
tree7f42ebe4460b0bbf043d02c5508179a0fd07b3c0
parent6c169c2e3fde9d646db991bf55c1fb0fe0029267
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