diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-03-22 13:31:08 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 18:21:10 +1000 |
commit | 58e21dff53b9063563e7bb5f5a795ab2d8f61dda (patch) | |
tree | e583e93b5685a8904058820f191048198c73a87f /drivers/gpu/drm/radeon/r100.c | |
parent | 79daedc942813c0417ff5e277da6f7f35705cde5 (diff) | |
download | lwn-58e21dff53b9063563e7bb5f5a795ab2d8f61dda.tar.gz lwn-58e21dff53b9063563e7bb5f5a795ab2d8f61dda.zip |
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/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index f10b747024f1..6443d9ea6c11 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c @@ -123,6 +123,10 @@ void r100_get_power_state(struct radeon_device *rdev, rdev->pm.current_power_state_index + 1; } break; + case PM_ACTION_DEFAULT: + rdev->pm.requested_power_state_index = rdev->pm.default_power_state_index; + rdev->pm.can_upclock = false; + break; case PM_ACTION_NONE: default: DRM_ERROR("Requested mode for not defined action\n"); |