diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-03-22 13:31:08 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 04:21:10 -0400 |
commit | 58e21dff53b9063563e7bb5f5a795ab2d8f61dda (patch) | |
tree | e583e93b5685a8904058820f191048198c73a87f /drivers/gpu/drm/radeon/r600.c | |
parent | 79daedc942813c0417ff5e277da6f7f35705cde5 (diff) |
drm/radeon/kms/pm: restore default power state on exit
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 35a5d4856f46..4f7f318b5437 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -161,6 +161,11 @@ void r600_get_power_state(struct radeon_device *rdev, | |||
161 | } | 161 | } |
162 | rdev->pm.requested_clock_mode_index = 0; | 162 | rdev->pm.requested_clock_mode_index = 0; |
163 | break; | 163 | break; |
164 | case PM_ACTION_DEFAULT: | ||
165 | rdev->pm.requested_power_state_index = rdev->pm.default_power_state_index; | ||
166 | rdev->pm.requested_clock_mode_index = 0; | ||
167 | rdev->pm.can_upclock = false; | ||
168 | break; | ||
164 | case PM_ACTION_NONE: | 169 | case PM_ACTION_NONE: |
165 | default: | 170 | default: |
166 | DRM_ERROR("Requested mode for not defined action\n"); | 171 | DRM_ERROR("Requested mode for not defined action\n"); |
@@ -221,6 +226,11 @@ void r600_get_power_state(struct radeon_device *rdev, | |||
221 | rdev->pm.can_upclock = false; | 226 | rdev->pm.can_upclock = false; |
222 | } | 227 | } |
223 | break; | 228 | break; |
229 | case PM_ACTION_DEFAULT: | ||
230 | rdev->pm.requested_power_state_index = rdev->pm.default_power_state_index; | ||
231 | rdev->pm.requested_clock_mode_index = 0; | ||
232 | rdev->pm.can_upclock = false; | ||
233 | break; | ||
224 | case PM_ACTION_NONE: | 234 | case PM_ACTION_NONE: |
225 | default: | 235 | default: |
226 | DRM_ERROR("Requested mode for not defined action\n"); | 236 | DRM_ERROR("Requested mode for not defined action\n"); |