Re: [PATCH] drm/amd/amdgpu: remove redundant flush_delayed_work

2021-01-18 Thread Christian König
Am 18.01.21 um 03:47 schrieb Jingwen Chen: When using cancel_delayed_work_sync, there's no need to flush_delayed_work first. This sequence can lead to a redundant loop of work executing. Well the difference is that cancel_delayed_work_sync() cancels the work when it is not running yet and

RE: [PATCH] drm/amd/amdgpu: remove redundant flush_delayed_work

2021-01-18 Thread Liu, Monk
, 2021 10:47 AM To: amd-gfx@lists.freedesktop.org Cc: Chen, JingWen Subject: [PATCH] drm/amd/amdgpu: remove redundant flush_delayed_work When using cancel_delayed_work_sync, there's no need to flush_delayed_work first. This sequence can lead to a redundant loop of work executing. Signed-off

[PATCH] drm/amd/amdgpu: remove redundant flush_delayed_work

2021-01-17 Thread Jingwen Chen
When using cancel_delayed_work_sync, there's no need to flush_delayed_work first. This sequence can lead to a redundant loop of work executing. Signed-off-by: Jingwen Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 1 - 1 file changed, 1 deletion(-) diff --git