]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/pm: drop unneeded thermal_controller_type check
authorEvan Quan <evan.quan@amd.com>
Mon, 23 May 2022 03:37:58 +0000 (11:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jun 2022 15:42:37 +0000 (11:42 -0400)
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>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index 6db10e49db7e9932b985f9c74fe29864b308c2a3..0991c1ffe525109cb2baf877c11965d5975fae18 100644 (file)
@@ -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)