summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2020-09-21 10:14:06 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-09-22 17:37:38 -0400
commit227e011f37d6eb621457bf9ecbf948f5daee8b12 (patch)
tree37b973a1197d3e269076f8414aeaea8d062a8d1a /drivers
parentd152986c5189ba213d2faf8958e5b4c7a3b78682 (diff)
downloadlinux-227e011f37d6eb621457bf9ecbf948f5daee8b12.tar.bz2
drm/amd/pm: drop redundant watermarks bitmap setting
As this is already set inside the implementation of smu_set_watermarks_table(). Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 7859f1911a72..538e6f5e19eb 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -1825,11 +1825,6 @@ int smu_set_watermarks_for_clock_ranges(struct smu_context *smu,
ret = smu_set_watermarks_table(smu, clock_ranges);
- if (!(smu->watermarks_bitmap & WATERMARKS_EXIST)) {
- smu->watermarks_bitmap |= WATERMARKS_EXIST;
- smu->watermarks_bitmap &= ~WATERMARKS_LOADED;
- }
-
mutex_unlock(&smu->mutex);
return ret;