drm/amdgpu: use pcie_bandwidth_available rather than open coding it
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Apr 2019 13:58:22 +0000 (08:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:01 +0000 (12:21 -0500)
commitdbaa922b5706b1aff4572c280e15bbea2d04afe6
tree0c34666fbc1ec19ec97860e76b51580f35d08e44
parent5208e6a3b25d0fe7acd812957b4a5e745b86e957
drm/amdgpu: use pcie_bandwidth_available rather than open coding it

It does the same thing we were doing already.  I though it needed
work for gen3/4 speeds, but that seems to be covered already.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c