projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6d266
)
drm/amd/powerplay: remove smu mutex lock in smu_hw_init
author
Kevin Wang
<kevin1.wang@amd.com>
Tue, 4 Jun 2019 09:41:48 +0000
(17:41 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:31 +0000
(18:59 -0500)
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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 1d0523831a15bcd37195d1ed2e5045d84af2cee5..3cb71668e5237a00a7d397af350b534bf2de7bcc 100644
(file)
--- 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