aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
diff options
context:
space:
mode:
authorKevin Wang <kevin1.wang@amd.com>2019-06-04 17:41:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 18:59:31 -0500
commite9c12a8e27aa211b057e5cb442ce96c02d9fde78 (patch)
tree793930affacc1a6b08beacd679f0b56e34877187 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
parentdrm/amd/powerplay: add thermal ctf support for navi10 (diff)
downloadlinux-dev-e9c12a8e27aa211b057e5cb442ce96c02d9fde78.tar.xz
linux-dev-e9c12a8e27aa211b057e5cb442ce96c02d9fde78.zip
drm/amd/powerplay: remove smu mutex lock in smu_hw_init
the smu mutex lock is unnecessary in smu hw init. Signed-off-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 1d0523831a15..3cb71668e523 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -981,8 +981,6 @@ static int smu_hw_init(void *handle)
}
}
- mutex_lock(&smu->mutex);
-
ret = smu_feature_init_dpm(smu);
if (ret)
goto failed;
@@ -1011,8 +1009,6 @@ static int smu_hw_init(void *handle)
if (ret)
goto failed;
- mutex_unlock(&smu->mutex);
-
if (!smu->pm_enabled)
adev->pm.dpm_enabled = false;
else