]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: fix build with CONFIG_DRM_AMD_DC_DCN disabled
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jan 2021 16:32:11 +0000 (11:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jan 2021 20:18:52 +0000 (15:18 -0500)
commit8e37e902ba53281fd4c3cbe5f97679ac2622b621
treeaba38b5d1d326808c50e1dc2e158e465dd2cba14
parent6b2fc37bbadcf392f722df1e2a197b808c138e55
drm/amdgpu/display: fix build with CONFIG_DRM_AMD_DC_DCN disabled

dc_allow_idle_optimizations() needs to be protected by
CONFIG_DRM_AMD_DC_DCN.

Fixes: 98e380831afd ("drm/amd/display: enable idle optimizations for linux (MALL stutter)")
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c