Skip to content

Commit

Permalink
drm/radeon/kms/pm: don't enable pm if there is only on power state
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed May 18, 2010
1 parent 678e7df commit 90c3905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 90c3905

Please sign in to comment.