diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2015-11-19 00:46:01 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:40 -0500 |
commit | 73c9f222889986d6f0ba0708115337a0284a5b61 (patch) | |
tree | 1cd19c4c0bc71e67a8e8c53bb2fdf25391faf412 | |
parent | 9c97e75f0fe6f98285127fb0424862087916e83f (diff) |
drm/amd/powerplay: add new function point in hwmgr.
1. for set_cpu_power_state
2. restore display configuration
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>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h index e115a071b5d0..238d1629bdc4 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |||
@@ -312,6 +312,10 @@ struct pp_hwmgr_func { | |||
312 | const struct pp_hw_power_state *pstate1, | 312 | const struct pp_hw_power_state *pstate1, |
313 | const struct pp_hw_power_state *pstate2, | 313 | const struct pp_hw_power_state *pstate2, |
314 | bool *equal); | 314 | bool *equal); |
315 | int (*set_cpu_power_state)(struct pp_hwmgr *hwmgr); | ||
316 | int (*store_cc6_data)(struct pp_hwmgr *hwmgr, uint32_t separation_time, | ||
317 | bool cc6_disable, bool pstate_disable, | ||
318 | bool pstate_switch_disable); | ||
315 | }; | 319 | }; |
316 | 320 | ||
317 | struct pp_table_func { | 321 | struct pp_table_func { |
@@ -575,7 +579,7 @@ struct pp_hwmgr { | |||
575 | const struct pp_hwmgr_func *hwmgr_func; | 579 | const struct pp_hwmgr_func *hwmgr_func; |
576 | const struct pp_table_func *pptable_func; | 580 | const struct pp_table_func *pptable_func; |
577 | struct pp_power_state *ps; | 581 | struct pp_power_state *ps; |
578 | enum pp_power_source power_source; | 582 | enum pp_power_source power_source; |
579 | uint32_t num_ps; | 583 | uint32_t num_ps; |
580 | struct pp_thermal_controller_info thermal_controller; | 584 | struct pp_thermal_controller_info thermal_controller; |
581 | bool fan_ctrl_is_in_default_mode; | 585 | bool fan_ctrl_is_in_default_mode; |