diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index acec26b70d0d..7b5539100114 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -557,9 +557,10 @@ void r600_pm_init_profile(struct radeon_device *rdev) | |||
557 | 557 | ||
558 | void r600_pm_misc(struct radeon_device *rdev) | 558 | void r600_pm_misc(struct radeon_device *rdev) |
559 | { | 559 | { |
560 | int requested_index = rdev->pm.requested_power_state_index; | 560 | int req_ps_idx = rdev->pm.requested_power_state_index; |
561 | struct radeon_power_state *ps = &rdev->pm.power_state[requested_index]; | 561 | int req_cm_idx = rdev->pm.requested_clock_mode_index; |
562 | struct radeon_voltage *voltage = &ps->clock_info[0].voltage; | 562 | struct radeon_power_state *ps = &rdev->pm.power_state[req_ps_idx]; |
563 | struct radeon_voltage *voltage = &ps->clock_info[req_cm_idx].voltage; | ||
563 | 564 | ||
564 | if ((voltage->type == VOLTAGE_SW) && voltage->voltage) { | 565 | if ((voltage->type == VOLTAGE_SW) && voltage->voltage) { |
565 | if (voltage->voltage != rdev->pm.current_vddc) { | 566 | if (voltage->voltage != rdev->pm.current_vddc) { |