drm/amd/powerplay: move those operations not needed for resume out
authorEvan Quan <evan.quan@amd.com>
Thu, 4 Jun 2020 03:25:28 +0000 (11:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:16 +0000 (01:59 -0400)
commit4e8cb0c011222a7d2cafaca4072a371ad5ecc837
treec728e68856f1694eee1f03c9e98de87a73ab0a7d
parent02cf91c113eacd069d58633871a1ccf3b17a33d6
drm/amd/powerplay: move those operations not needed for resume out

Since smu_smc_table_hw_init() is needed for both .hw_init and .resume.
By doing this, we can drop unnecessary operations on resume.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c