aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2018-12-24 21:20:56 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-01-14 15:04:46 -0500
commit73c97fa4421fa0465a0b25a0ccf62af32e4bd01e (patch)
treec76e535cdee6d1d5046bfb35c4d888c7fa9c7742 /drivers/gpu/drm/amd
parent05794eff1aa6060248bfca34ee936c613f94a942 (diff)
drm/amd/powerplay:clean up phm_enable_clock_power_gatings
As the PG was setted by each IP block durinng IP early init thus remove the unused phm_enable_clock_power_gatings related funcs. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c9
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h1
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/hwmgr.h1
3 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
index 1f92a9f4c9e3..c1c51c115e57 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
@@ -154,15 +154,6 @@ int phm_powerdown_uvd(struct pp_hwmgr *hwmgr)
154 return 0; 154 return 0;
155} 155}
156 156
157int phm_enable_clock_power_gatings(struct pp_hwmgr *hwmgr)
158{
159 PHM_FUNC_CHECK(hwmgr);
160
161 if (NULL != hwmgr->hwmgr_func->enable_clock_power_gating)
162 return hwmgr->hwmgr_func->enable_clock_power_gating(hwmgr);
163
164 return 0;
165}
166 157
167int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr) 158int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr)
168{ 159{
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
index f4dab979a3a1..6e0be6027705 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
@@ -397,7 +397,6 @@ struct phm_odn_clock_levels {
397}; 397};
398 398
399extern int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr); 399extern int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr);
400extern int phm_enable_clock_power_gatings(struct pp_hwmgr *hwmgr);
401extern int phm_powerdown_uvd(struct pp_hwmgr *hwmgr); 400extern int phm_powerdown_uvd(struct pp_hwmgr *hwmgr);
402extern int phm_setup_asic(struct pp_hwmgr *hwmgr); 401extern int phm_setup_asic(struct pp_hwmgr *hwmgr);
403extern int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr); 402extern int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr);
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
index 8cb831b6a016..be4f87aed99c 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
@@ -251,7 +251,6 @@ struct pp_hwmgr_func {
251 uint32_t (*get_sclk)(struct pp_hwmgr *hwmgr, bool low); 251 uint32_t (*get_sclk)(struct pp_hwmgr *hwmgr, bool low);
252 int (*power_state_set)(struct pp_hwmgr *hwmgr, 252 int (*power_state_set)(struct pp_hwmgr *hwmgr,
253 const void *state); 253 const void *state);
254 int (*enable_clock_power_gating)(struct pp_hwmgr *hwmgr);
255 int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr); 254 int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr);
256 int (*pre_display_config_changed)(struct pp_hwmgr *hwmgr); 255 int (*pre_display_config_changed)(struct pp_hwmgr *hwmgr);
257 int (*display_config_changed)(struct pp_hwmgr *hwmgr); 256 int (*display_config_changed)(struct pp_hwmgr *hwmgr);