summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/ni_dpm.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-01-16 14:35:39 -0500
committerAlex Deucher <alexander.deucher@amd.com>2013-06-27 19:16:20 -0400
commitfee3d744bf3a0484f2f3ece587cccdffe33f2a15 (patch)
tree4f44c34353ade97ad555ffa20e78239963f8bf69 /drivers/gpu/drm/radeon/ni_dpm.h
parente8a9539fa098623ae3af1e077b49794917ea073d (diff)
downloadlinux-fee3d744bf3a0484f2f3ece587cccdffe33f2a15.tar.bz2
drm/radeon/dpm: add pre/post_set_power_state callback (cayman)
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/ni_dpm.h')
-rw-r--r--drivers/gpu/drm/radeon/ni_dpm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/ni_dpm.h b/drivers/gpu/drm/radeon/ni_dpm.h
index e10f74792147..59c1692f7838 100644
--- a/drivers/gpu/drm/radeon/ni_dpm.h
+++ b/drivers/gpu/drm/radeon/ni_dpm.h
@@ -202,7 +202,8 @@ struct ni_power_info {
const struct ni_cac_weights *cac_weights;
u8 lta_window_size;
u8 lts_truncate;
- struct ni_ps hw_ps;
+ struct ni_ps current_ps;
+ struct ni_ps requested_ps;
/* scratch structs */
SMC_NIslands_MCRegisters smc_mc_reg_table;
NISLANDS_SMC_STATETABLE smc_statetable;