diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-06-07 18:15:18 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-08 09:35:53 +1000 |
commit | 4d60173fc1b12b0c308f861620fe8e2a84f6e5da (patch) | |
tree | dd42b72d50e0859e632b2e9ffd0b7c0961b7bf86 /drivers/gpu/drm/radeon/radeon_atombios.c | |
parent | aa1df0f229829109e49d1dc493252fd94a7af2a1 (diff) | |
download | blackbird-op-linux-4d60173fc1b12b0c308f861620fe8e2a84f6e5da.tar.gz blackbird-op-linux-4d60173fc1b12b0c308f861620fe8e2a84f6e5da.zip |
drm/radeon/kms/pm: track current voltage (v2)
track the current voltage level and avoid setting it
if the requested voltage is already set.
v2: check voltage type before checking current voltage
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atombios.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index f0fcd6c3d38c..99bd8a9c56b3 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -1966,6 +1966,7 @@ void radeon_atombios_get_power_modes(struct radeon_device *rdev) rdev->pm.current_power_state_index = rdev->pm.default_power_state_index; rdev->pm.current_clock_mode_index = 0; + rdev->pm.current_vddc = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].voltage.voltage; } void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable) |