aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-03-14 10:54:55 +1000
committerDave Airlie <airlied@redhat.com>2018-03-14 10:54:55 +1000
commit62ccb6533920ce6e8a18ef7c5ee3f98783a1a42a (patch)
tree1539426bf4414eb6abee7f944d31ecef1569cc2c /drivers/gpu/drm
parentMerge branch 'drm-next-4.17' of git://people.freedesktop.org/~agd5f/linux into drm-next (diff)
downloadlinux-dev-62ccb6533920ce6e8a18ef7c5ee3f98783a1a42a.tar.xz
linux-dev-62ccb6533920ce6e8a18ef7c5ee3f98783a1a42a.zip
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c2
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(
smu7_get_current_pcie_speed(hwmgr) > 0)
return 0;
+#ifdef CONFIG_ACPI
if (amdgpu_acpi_pcie_performance_request(hwmgr->adev, request, false)) {
if (PP_PCIEGen2 == target_link_speed)
pr_info("PSPP request to switch to Gen2 from Gen3 Failed!");
else
pr_info("PSPP request to switch to Gen1 from Gen2 Failed!");
}
+#endif
}
return 0;