drm/amdgpu: Split set_pg_state into separate function
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 13 Jun 2018 11:30:40 +0000 (19:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:50 +0000 (16:38 -0500)
commitc9f96fd5063150dce7e71ecc508989f5ff055039
treeedc886c6dc9c7e6deb99dc26b646661a5e498119
parent9134c6d7f288f902d932e7cf57fab2f49e8ad70b
drm/amdgpu: Split set_pg_state into separate function

1. add amdgpu_device_ip_late_set_pg_state function for
   set pg state.
2. delete duplicate pg state setting on gfx_v8_0's late_init.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c