Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196528
b: refs/heads/master
c: 15a7df8
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and Dave Airlie committed May 18, 2010
1 parent c083176 commit 5ad6c16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f81f202402640c27b38e1452dcb4d3e447043f48
refs/heads/master: 15a7df8db84e7a9d9915d879199ac4a870836c54
9 changes: 5 additions & 4 deletions trunk/drivers/gpu/drm/radeon/r100.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,22 @@ void r100_set_power_state(struct radeon_device *rdev, bool static_switch)
#endif
radeon_pm_finish(rdev);
} else {
radeon_sync_with_vblank(rdev);

if (!radeon_pm_in_vbl(rdev))
return;

/* set engine clock */
if (sclk != rdev->pm.current_sclk) {
radeon_sync_with_vblank(rdev);
radeon_pm_debug_check_in_vbl(rdev, false);
radeon_set_engine_clock(rdev, sclk);
radeon_pm_debug_check_in_vbl(rdev, true);
rdev->pm.current_sclk = sclk;
DRM_INFO("Setting: e: %d\n", sclk);
}

#if 0
/* set memory clock */
if (rdev->asic->set_memory_clock && (mclk != rdev->pm.current_mclk)) {
radeon_sync_with_vblank(rdev);
radeon_pm_debug_check_in_vbl(rdev, false);
radeon_pm_prepare(rdev);
radeon_set_memory_clock(rdev, mclk);
Expand All @@ -210,7 +212,6 @@ void r100_set_power_state(struct radeon_device *rdev, bool static_switch)
rdev->pm.current_mclk = mclk;
DRM_INFO("Setting: m: %d\n", mclk);
}
#endif
}

rdev->pm.current_power_state_index = rdev->pm.requested_power_state_index;
Expand Down

0 comments on commit 5ad6c16

Please sign in to comment.