drm/amd/powerplay: add helper of smu_clk_dpm_is_enabled for smu
authorKevin Wang <kevin1.wang@amd.com>
Fri, 12 Jul 2019 07:22:40 +0000 (15:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jul 2019 18:08:23 +0000 (13:08 -0500)
commit54728170e00cecfac0394c6ee7ea4043778a512b
treea58d38077a1af7af503d6844b935836560a73ff7
parent8e33376b7649b353ffd55f2b40fe129ead3880f7
drm/amd/powerplay: add helper of smu_clk_dpm_is_enabled for smu

v2: change function name to smu_clk_dpm_is_enabled.
add this helper function to check dpm clk feature is enabled.

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