drm/amdgpu: unify rlc function into structure
authorLikun Gao <Likun.Gao@amd.com>
Fri, 28 Sep 2018 11:21:23 +0000 (19:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Nov 2018 21:28:52 +0000 (16:28 -0500)
commitfdb81fd788a732b5efda8638be3fe159550b032d
tree63e54f39f4445585e03a6795ec67cbe75751e4a0
parenta82c15668cfc02d69e0265cda50fa932310ddd30
drm/amdgpu: unify rlc function into structure

Put function rlc_init,rlc_fini,rlc_resume,rlc_stop,rlc_start into structure
amdgpu_rlc_funcs and change the method to call rlc function for each verssion of
GFX.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c