summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2022-05-23 11:37:58 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-06-08 11:42:37 -0400
commitbb50bba9c6c741f5e359f009dde3b25f12a84e3d (patch)
treef737617e18b9748d476abbd3eb494fbdd727265c /drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
parentcde83d47482e2578432f9ce029748f4f0d029e9e (diff)
downloadlinux-bb50bba9c6c741f5e359f009dde3b25f12a84e3d.tar.bz2
drm/amd/pm: drop unneeded thermal_controller_type check
As there is actually no direct dependence between them. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
index 6db10e49db7e..0991c1ffe525 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
@@ -1076,10 +1076,7 @@ int smu_v13_0_set_power_limit(struct smu_context *smu,
int smu_v13_0_enable_thermal_alert(struct smu_context *smu)
{
- if (smu->smu_table.thermal_controller_type)
- return amdgpu_irq_get(smu->adev, &smu->irq_source, 0);
-
- return 0;
+ return amdgpu_irq_get(smu->adev, &smu->irq_source, 0);
}
int smu_v13_0_disable_thermal_alert(struct smu_context *smu)