[PATCH 1/4] drm/amd/pm: drop dead code
Evan Quan
evan.quan at amd.com
Mon Sep 7 09:01:23 UTC 2020
Raven never goes to swsmu path. So "adev->smu.ppt_funcs" will be
always false.
Change-Id: Ia55ad97bcf9ecf135a9bd795f36a5b521d718b20
Signed-off-by: Evan Quan <evan.quan at amd.com>
Tested-by: Changfeng Zhu <Changfeng.Zhu at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
index c5f2216e59c4..99ccabcc135e 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
@@ -592,9 +592,6 @@ void pp_rv_set_wm_ranges(struct pp_smu *pp,
if (pp_funcs && pp_funcs->set_watermarks_for_clocks_ranges)
pp_funcs->set_watermarks_for_clocks_ranges(pp_handle,
&wm_with_clock_ranges);
- else if (adev->smu.ppt_funcs)
- smu_set_watermarks_for_clock_ranges(&adev->smu,
- &wm_with_clock_ranges);
}
void pp_rv_set_pme_wa_enable(struct pp_smu *pp)
--
2.28.0
More information about the amd-gfx
mailing list