File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
drivers/gpu/drm/amd/pm/legacy-dpm Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -6925,23 +6925,6 @@ static int si_dpm_enable(struct amdgpu_device *adev)
6925
6925
return 0 ;
6926
6926
}
6927
6927
6928
- static int si_set_temperature_range (struct amdgpu_device * adev )
6929
- {
6930
- int ret ;
6931
-
6932
- ret = si_thermal_enable_alert (adev , false);
6933
- if (ret )
6934
- return ret ;
6935
- ret = si_thermal_set_temperature_range (adev , R600_TEMP_RANGE_MIN , R600_TEMP_RANGE_MAX );
6936
- if (ret )
6937
- return ret ;
6938
- ret = si_thermal_enable_alert (adev , true);
6939
- if (ret )
6940
- return ret ;
6941
-
6942
- return ret ;
6943
- }
6944
-
6945
6928
static void si_dpm_disable (struct amdgpu_device * adev )
6946
6929
{
6947
6930
struct rv7xx_power_info * pi = rv770_get_pi (adev );
@@ -7626,18 +7609,6 @@ static int si_dpm_process_interrupt(struct amdgpu_device *adev,
7626
7609
7627
7610
static int si_dpm_late_init (void * handle )
7628
7611
{
7629
- int ret ;
7630
- struct amdgpu_device * adev = (struct amdgpu_device * )handle ;
7631
-
7632
- if (!adev -> pm .dpm_enabled )
7633
- return 0 ;
7634
-
7635
- ret = si_set_temperature_range (adev );
7636
- if (ret )
7637
- return ret ;
7638
- #if 0 //TODO ?
7639
- si_dpm_powergate_uvd (adev , true);
7640
- #endif
7641
7612
return 0 ;
7642
7613
}
7643
7614
You can’t perform that action at this time.
0 commit comments