diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-01-16 13:53:40 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:16:18 -0400 |
commit | a284c48ae7217fc362b851c68f74d7b414061704 (patch) | |
tree | d26e64601b9fbd29ed7e144c957b3e97b8404813 /drivers/gpu/drm/radeon/radeon_asic.c | |
parent | 422a56bc8a5aaa6d48b244a1ba0484ef4d62a7ac (diff) | |
download | lwn-a284c48ae7217fc362b851c68f74d7b414061704.tar.gz lwn-a284c48ae7217fc362b851c68f74d7b414061704.zip |
drm/radeon/dpm: add pre/post_set_power_state callback (TN)
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/radeon_asic.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_asic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index b0d055a20d5d..c99fae7b6f7a 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.c +++ b/drivers/gpu/drm/radeon/radeon_asic.c @@ -2091,7 +2091,9 @@ static struct radeon_asic trinity_asic = { .setup_asic = &trinity_dpm_setup_asic, .enable = &trinity_dpm_enable, .disable = &trinity_dpm_disable, + .pre_set_power_state = &trinity_dpm_pre_set_power_state, .set_power_state = &trinity_dpm_set_power_state, + .post_set_power_state = &trinity_dpm_post_set_power_state, .display_configuration_changed = &trinity_dpm_display_configuration_changed, .fini = &trinity_dpm_fini, .get_sclk = &trinity_dpm_get_sclk, |