Commit 0ec7535f authored by Prike Liang's avatar Prike Liang Committed by Alex Deucher
Browse files

drm/amdgpu: remove the duplicated mes queue active state setting



The MES queue deactivation and active status are already set in
mes_userq_unmap|map(), so the caller needn't set the queue_active
bit again.

Signed-off-by: default avatarPrike Liang <Prike.Liang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f0ec5926
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -358,10 +358,8 @@ mes_userq_mqd_destroy(struct amdgpu_userq_mgr *uq_mgr,
static int mes_userq_suspend(struct amdgpu_userq_mgr *uq_mgr,
				   struct amdgpu_usermode_queue *queue)
{
	if (queue->queue_active) {
	if (queue->queue_active)
		mes_userq_unmap(uq_mgr, queue);
		queue->queue_active = false;
	}

	return 0;
}
@@ -379,8 +377,6 @@ static int mes_userq_resume(struct amdgpu_userq_mgr *uq_mgr,
		DRM_ERROR("Failed to resume queue\n");
		return ret;
	}

	queue->queue_active = true;
	return 0;
}