drm/amdgpu/gfx9: use hweight for calculating num_rbs
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Mar 2017 18:47:18 +0000 (14:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:44 +0000 (23:55 -0400)
commit2572c24ca9f4a427b876f3e7718097e9c4b9ddc7
tree052bc8b918e78dd9b44f9326efa889f2fb2a8520
parentf2713e8c2a34711ed820a3095a7c5f4a0c85df1c
drm/amdgpu/gfx9: use hweight for calculating num_rbs

Match what we do for other asics.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c