File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4208,6 +4208,7 @@ static void ci_request_link_speed_change_before_state_change(struct radeon_devic
4208
4208
pi -> pspp_notify_required = false;
4209
4209
if (target_link_speed > current_link_speed ) {
4210
4210
switch (target_link_speed ) {
4211
+ #ifdef CONFIG_ACPI
4211
4212
case RADEON_PCIE_GEN3 :
4212
4213
if (radeon_acpi_pcie_performance_request (rdev , PCIE_PERF_REQ_PECI_GEN3 , false) == 0 )
4213
4214
break ;
@@ -4217,6 +4218,7 @@ static void ci_request_link_speed_change_before_state_change(struct radeon_devic
4217
4218
case RADEON_PCIE_GEN2 :
4218
4219
if (radeon_acpi_pcie_performance_request (rdev , PCIE_PERF_REQ_PECI_GEN2 , false) == 0 )
4219
4220
break ;
4221
+ #endif
4220
4222
default :
4221
4223
pi -> force_pcie_gen = ci_get_current_pcie_speed (rdev );
4222
4224
break ;
@@ -4248,7 +4250,9 @@ static void ci_notify_link_speed_change_after_state_change(struct radeon_device
4248
4250
(ci_get_current_pcie_speed (rdev ) > 0 ))
4249
4251
return ;
4250
4252
4253
+ #ifdef CONFIG_ACPI
4251
4254
radeon_acpi_pcie_performance_request (rdev , request , false);
4255
+ #endif
4252
4256
}
4253
4257
}
4254
4258
You can’t perform that action at this time.
0 commit comments