drm/amdgpu: rework runtime pm enablement for BACO
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 14:05:43 +0000 (10:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:27 +0000 (01:59 -0400)
commitb38c69688f5a375e2a7274fe557393bcc37c56c1
tree9959787d1d11b703aefb60f9db34732f50fed300
parent75e1658ea0ea78a534b973aefa6a175277fff664
drm/amdgpu: rework runtime pm enablement for BACO

Add a switch statement to simplify asic checks.  Note
that BACO is not supported on APUs, so there is no
need to check them.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c