diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-05-28 23:35:01 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-03 03:13:28 (GMT) |
commit | 9349d5cc920c10845693f906ebd67f394f1d0d04 (patch) | |
tree | eca1a14f509edc36abf66a08ecc777b98988f732 /drivers/gpu/drm/radeon/rv770.c | |
parent | 7ac9aa5a1f1b87adb69bcbec2b89e228f074103a (diff) | |
download | linux-9349d5cc920c10845693f906ebd67f394f1d0d04.tar.xz |
drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen
I missed these in the r6xx commit.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 253f24a..33952da 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c @@ -44,7 +44,12 @@ void rv770_fini(struct radeon_device *rdev); void rv770_pm_misc(struct radeon_device *rdev) { + int requested_index = rdev->pm.requested_power_state_index; + struct radeon_power_state *ps = &rdev->pm.power_state[requested_index]; + struct radeon_voltage *voltage = &ps->clock_info[0].voltage; + if ((voltage->type == VOLTAGE_SW) && voltage->voltage) + radeon_atom_set_voltage(rdev, voltage->voltage); } /* |