[1/3] drm/amd/powerplay: remove mutex lock for smu_handle_task when smu late init

Submitted by Gui, Jack on July 18, 2019, 10:02 a.m.

Details

Message ID 1563444138-23948-1-git-send-email-Jack.Gui@amd.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Gui, Jack July 18, 2019, 10:02 a.m.
remove mutex lock when smu late init to call smu_handle_task

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 --
 1 file changed, 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 7d1bd09..122985c 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -569,11 +569,9 @@  static int smu_late_init(void *handle)
 
 	if (!smu->pm_enabled)
 		return 0;
-	mutex_lock(&smu->mutex);
 	smu_handle_task(&adev->smu,
 			smu->smu_dpm.dpm_level,
 			AMD_PP_TASK_COMPLETE_INIT);
-	mutex_unlock(&smu->mutex);
 
 	return 0;
 }