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-by: Jingwen Chen <Jingwen.Chen2@amd.com> Reviewed-by: Monk Liu <monk.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
9f0837e066
commit
b43ae488ac
@@ -571,7 +571,6 @@ void amdgpu_virt_fini_data_exchange(struct amdgpu_device *adev)
|
|||||||
{
|
{
|
||||||
if (adev->virt.vf2pf_update_interval_ms != 0) {
|
if (adev->virt.vf2pf_update_interval_ms != 0) {
|
||||||
DRM_INFO("clean up the vf2pf work item\n");
|
DRM_INFO("clean up the vf2pf work item\n");
|
||||||
flush_delayed_work(&adev->virt.vf2pf_work);
|
|
||||||
cancel_delayed_work_sync(&adev->virt.vf2pf_work);
|
cancel_delayed_work_sync(&adev->virt.vf2pf_work);
|
||||||
adev->virt.vf2pf_update_interval_ms = 0;
|
adev->virt.vf2pf_update_interval_ms = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user