Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209801
b: refs/heads/master
c: 4e186b2
h: refs/heads/master
i:
  209799: 7639938
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Aug 19, 2010
1 parent 49e6a62 commit 0cfad64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4aab97e818c255a1bc25bb981f121a7992c6b290
refs/heads/master: 4e186b2d6c878793587c35d7f06c94565d76e9b8
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ static void radeon_pm_set_clocks(struct radeon_device *rdev)
{
int i;

/* no need to take locks, etc. if nothing's going to change */
if ((rdev->pm.requested_clock_mode_index == rdev->pm.current_clock_mode_index) &&
(rdev->pm.requested_power_state_index == rdev->pm.current_power_state_index))
return;

mutex_lock(&rdev->ddev->struct_mutex);
mutex_lock(&rdev->vram_mutex);
mutex_lock(&rdev->cp.mutex);
Expand Down

0 comments on commit 0cfad64

Please sign in to comment.