diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2015-11-19 13:47:02 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:41 -0500 |
commit | 73afe621016645ec9dbeacefd6a38cc7054ec8c4 (patch) | |
tree | 30f92fa727d13b8741d3043288de86c841e94836 /drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | |
parent | 7fb72a1fc01cc1a8de533abc80b9eaf0120e8529 (diff) | |
download | op-kernel-dev-73afe621016645ec9dbeacefd6a38cc7054ec8c4.zip op-kernel-dev-73afe621016645ec9dbeacefd6a38cc7054ec8c4.tar.gz |
drm/amd/powerplay: enable set_cpu_power_state task. (v2)
v2: integrate Jammy's crash fix
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c index d6d2849..31b0dc3 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c @@ -180,7 +180,7 @@ int phm_display_configuration_changed(struct pp_hwmgr *hwmgr) hwmgr->hwmgr_func->display_config_changed(hwmgr); } else return phm_dispatch_table(hwmgr, &hwmgr->display_configuration_changed, NULL, NULL); - return 0; + return 0; } int phm_notify_smc_display_config_after_ps_adjustment(struct pp_hwmgr *hwmgr) @@ -193,7 +193,7 @@ int phm_notify_smc_display_config_after_ps_adjustment(struct pp_hwmgr *hwmgr) if (NULL != hwmgr->hwmgr_func->display_config_changed) hwmgr->hwmgr_func->notify_smc_display_config_after_ps_adjustment(hwmgr); - return 0; + return 0; } int phm_stop_thermal_controller(struct pp_hwmgr *hwmgr) @@ -260,3 +260,12 @@ int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr, display_config->nb_pstate_switch_disable); } + +int phm_set_cpu_power_state(struct pp_hwmgr *hwmgr) +{ + if (hwmgr != NULL && hwmgr->hwmgr_func->set_cpu_power_state != NULL) + return hwmgr->hwmgr_func->set_cpu_power_state(hwmgr); + + return 0; +} + |