diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-06-07 18:15:18 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-07 19:35:53 -0400 |
commit | 4d60173fc1b12b0c308f861620fe8e2a84f6e5da (patch) | |
tree | dd42b72d50e0859e632b2e9ffd0b7c0961b7bf86 /drivers/gpu/drm/radeon/radeon.h | |
parent | aa1df0f229829109e49d1dc493252fd94a7af2a1 (diff) |
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.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 2ad0e0304294..8e1d44ca26ec 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -748,6 +748,7 @@ struct radeon_pm { | |||
748 | int default_power_state_index; | 748 | int default_power_state_index; |
749 | u32 current_sclk; | 749 | u32 current_sclk; |
750 | u32 current_mclk; | 750 | u32 current_mclk; |
751 | u32 current_vddc; | ||
751 | struct radeon_i2c_chan *i2c_bus; | 752 | struct radeon_i2c_chan *i2c_bus; |
752 | /* selected pm method */ | 753 | /* selected pm method */ |
753 | enum radeon_pm_method pm_method; | 754 | enum radeon_pm_method pm_method; |