summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/sumo_dpm.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-06-25 23:40:21 +0400
committerAlex Deucher <alexander.deucher@amd.com>2013-06-28 03:16:18 +0400
commit422a56bc8a5aaa6d48b244a1ba0484ef4d62a7ac (patch)
tree8c25a9e64134c9d1a7e9fb0c6fe6f298a7f2a2f5 /drivers/gpu/drm/radeon/sumo_dpm.h
parent98243917d7cd64be923aad76c563de7e23b0b386 (diff)
downloadlinux-422a56bc8a5aaa6d48b244a1ba0484ef4d62a7ac.tar.xz
drm/radeon/dpm: add pre/post_set_power_state callback (sumo)
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/sumo_dpm.h')
-rw-r--r--drivers/gpu/drm/radeon/sumo_dpm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/sumo_dpm.h b/drivers/gpu/drm/radeon/sumo_dpm.h
index a40b62ae0957..a3a7a6190713 100644
--- a/drivers/gpu/drm/radeon/sumo_dpm.h
+++ b/drivers/gpu/drm/radeon/sumo_dpm.h
@@ -116,7 +116,6 @@ struct sumo_power_info {
struct sumo_pl acpi_pl;
struct sumo_pl boot_pl;
struct sumo_pl boost_pl;
- struct sumo_ps current_ps;
bool disable_gfx_power_gating_in_uvd;
bool driver_nbps_policy_disable;
bool enable_alt_vddnb;
@@ -129,7 +128,10 @@ struct sumo_power_info {
bool enable_dynamic_patch_ps;
bool enable_dpm;
bool enable_boost;
- struct sumo_ps hw_ps;
+ struct radeon_ps current_rps;
+ struct sumo_ps current_ps;
+ struct radeon_ps requested_rps;
+ struct sumo_ps requested_ps;
};
#define SUMO_UTC_DFLT_00 0x48