drm/amdgpu: fetch cu_info once at init
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 May 2016 20:25:53 +0000 (16:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 16:31:21 +0000 (12:31 -0400)
commit7dae69a2905c34a97678645c8e4c95095f5390b8
treec60bebc39578bf13cd64989775e9dc9e71819a3a
parentedf600dac65eecb6c8bcf21fa986db30ee21a2ac
drm/amdgpu: fetch cu_info once at init

Fetch this info once at init and just store the results
for future requests.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.h
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.h
drivers/gpu/drm/amd/amdgpu/vi.c