diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-01-16 14:17:23 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:16:19 -0400 |
commit | e8a9539fa098623ae3af1e077b49794917ea073d (patch) | |
tree | 03ad49d920c3e668bb543e57fcac2527367a28a7 /drivers/gpu/drm/radeon/cypress_dpm.h | |
parent | a284c48ae7217fc362b851c68f74d7b414061704 (diff) |
drm/radeon/dpm: add pre/post_set_power_state callback (BTC)
This properly implemented dynamic state adjustment by
using a working copy of the requested and current
power states.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/cypress_dpm.h')
-rw-r--r-- | drivers/gpu/drm/radeon/cypress_dpm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/cypress_dpm.h b/drivers/gpu/drm/radeon/cypress_dpm.h index 5b19364a5810..4c3f18c69f4f 100644 --- a/drivers/gpu/drm/radeon/cypress_dpm.h +++ b/drivers/gpu/drm/radeon/cypress_dpm.h | |||
@@ -88,7 +88,10 @@ struct evergreen_power_info { | |||
88 | struct at ats[2]; | 88 | struct at ats[2]; |
89 | /* smc offsets */ | 89 | /* smc offsets */ |
90 | u16 mc_reg_table_start; | 90 | u16 mc_reg_table_start; |
91 | struct rv7xx_ps hw_ps; | 91 | struct radeon_ps current_rps; |
92 | struct rv7xx_ps current_ps; | ||
93 | struct radeon_ps requested_rps; | ||
94 | struct rv7xx_ps requested_ps; | ||
92 | }; | 95 | }; |
93 | 96 | ||
94 | #define CYPRESS_HASI_DFLT 400000 | 97 | #define CYPRESS_HASI_DFLT 400000 |