drm/amd/powerplay: move clock dpm enablement check to smu_v11/v12
authorEvan Quan <evan.quan@amd.com>
Tue, 7 Jul 2020 02:24:31 +0000 (10:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jul 2020 19:37:37 +0000 (15:37 -0400)
commitd23c3ccc217649884a12af001fd131d057db0a8a
treeda75a05093db9767b891ce48b9f93b26884dbb5e
parent8264ee69f0d82cc1b30edd9930c27b1e4273d00b
drm/amd/powerplay: move clock dpm enablement check to smu_v11/v12

As those APIs of smu_v11/v12 are more widely called. And they
need this check also.

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
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/smu_v12_0.c