drm/amd/pp: Refine pp_dpm_force_clock_level functions
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 30 Jan 2018 04:48:12 +0000 (12:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:06 +0000 (14:19 -0500)
commit948fd66c94e1206e9b62a5ab00934cb35d00b89a
tree5e879a512960c7f596bd6b9726d716b9b5f61828
parent6fa3ef3a9c4503d7769019a7b00f3f2e0e7d7c68
drm/amd/pp: Refine pp_dpm_force_clock_level functions

Only when user set manual performance mode, driver
enable pp_dpm_force_clock_level.
so check the mode in pp_dpm_force_clock_level,
and delete the same logic in callback functions.

Reviewed-by: Alex Deucher <alexander.deucher@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/ci_dpm.c
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c