]> 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)
commit05dd52ba192dc57bda03612aacf505258a9e414d
tree7f42ebe4460b0bbf043d02c5508179a0fd07b3c0
parent51349b89594ead4d5b992b6e658b600ea4e0bbe7
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