Skip to content

Commit

Permalink
radeon: Make sure that we determine the correct PM state before trans…
Browse files Browse the repository at this point in the history
…ition

We need to choose the correct PM state to transition into before starting
the actual change. Call radeon_get_power_state() at the top of the clock
setting to do so.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Matthew Garrett authored and Dave Airlie committed May 18, 2010
1 parent 956ac86 commit c37d230
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/radeon_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ static void radeon_pm_set_clocks(struct radeon_device *rdev, int static_switch)
{
int i;

if (!static_switch)
radeon_get_power_state(rdev, rdev->pm.planned_action);

mutex_lock(&rdev->cp.mutex);

/* wait for GPU idle */
Expand Down

0 comments on commit c37d230

Please sign in to comment.