mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
5e6d266573
commit
e9c12a8e27
|
@ -981,8 +981,6 @@ static int smu_hw_init(void *handle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_lock(&smu->mutex);
|
|
||||||
|
|
||||||
ret = smu_feature_init_dpm(smu);
|
ret = smu_feature_init_dpm(smu);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
@ -1011,8 +1009,6 @@ static int smu_hw_init(void *handle)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
mutex_unlock(&smu->mutex);
|
|
||||||
|
|
||||||
if (!smu->pm_enabled)
|
if (!smu->pm_enabled)
|
||||||
adev->pm.dpm_enabled = false;
|
adev->pm.dpm_enabled = false;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue