diff options
author | Dave Airlie <airlied@redhat.com> | 2018-03-13 20:54:55 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-03-13 20:54:55 -0400 |
commit | 62ccb6533920ce6e8a18ef7c5ee3f98783a1a42a (patch) | |
tree | 1539426bf4414eb6abee7f944d31ecef1569cc2c | |
parent | 128ccceaba8656573b8b0f86d3ab6e38094cc754 (diff) |
drm/amd/pp: fix missing CONFIG_ACPI.
This was stopping me building on ARM after last pull.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index d4d1d2e7e233..df2a312ca6c9 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | |||
@@ -3827,12 +3827,14 @@ static int smu7_notify_link_speed_change_after_state_change( | |||
3827 | smu7_get_current_pcie_speed(hwmgr) > 0) | 3827 | smu7_get_current_pcie_speed(hwmgr) > 0) |
3828 | return 0; | 3828 | return 0; |
3829 | 3829 | ||
3830 | #ifdef CONFIG_ACPI | ||
3830 | if (amdgpu_acpi_pcie_performance_request(hwmgr->adev, request, false)) { | 3831 | if (amdgpu_acpi_pcie_performance_request(hwmgr->adev, request, false)) { |
3831 | if (PP_PCIEGen2 == target_link_speed) | 3832 | if (PP_PCIEGen2 == target_link_speed) |
3832 | pr_info("PSPP request to switch to Gen2 from Gen3 Failed!"); | 3833 | pr_info("PSPP request to switch to Gen2 from Gen3 Failed!"); |
3833 | else | 3834 | else |
3834 | pr_info("PSPP request to switch to Gen1 from Gen2 Failed!"); | 3835 | pr_info("PSPP request to switch to Gen1 from Gen2 Failed!"); |
3835 | } | 3836 | } |
3837 | #endif | ||
3836 | } | 3838 | } |
3837 | 3839 | ||
3838 | return 0; | 3840 | return 0; |