drm/radeon/kms/pm: update display watermarks with power state changes
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 22 Mar 2010 17:34:22 +0000 (13:34 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 18 May 2010 08:21:00 +0000 (18:21 +1000)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c

index 10ef892..a137ee2 100644 (file)
@@ -293,6 +293,11 @@ static void radeon_pm_set_clocks(struct radeon_device *rdev)
                }
        }
 
+       /* update display watermarks based on new power state */
+       radeon_update_bandwidth_info(rdev);
+       if (rdev->pm.active_crtc_count)
+               radeon_bandwidth_update(rdev);
+
        mutex_unlock(&rdev->cp.mutex);
 }