summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_pm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-03-24 11:32:29 -0400
committerDave Airlie <airlied@redhat.com>2010-05-18 18:21:05 +1000
commit90c3905950021a9b37ac1a4dd78225881f4c61e4 (patch)
tree856235c7b55a6cb3c648f2826e68d94fffbbb14e /drivers/gpu/drm/radeon/radeon_pm.c
parent678e7dfa9e1bb0d1ad31b7cddce58fc3b67cfb27 (diff)
drm/radeon/kms/pm: don't enable pm if there is only on power state
Just adds overhead when the power state will never change. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_pm.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index a137ee2f722..811126464a7 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -113,7 +113,7 @@ int radeon_pm_init(struct radeon_device *rdev)
INIT_DELAYED_WORK(&rdev->pm.idle_work, radeon_pm_idle_work_handler);
- if (radeon_dynpm != -1 && radeon_dynpm) {
+ if ((radeon_dynpm != -1 && radeon_dynpm) && (rdev->pm.num_power_states > 1)) {
rdev->pm.state = PM_STATE_PAUSED;
DRM_INFO("radeon: dynamic power management enabled\n");
}