Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242325
b: refs/heads/master
c: 1783e4b
h: refs/heads/master
i:
  242323: e826e01
v: v3
  • Loading branch information
Thomas Renninger authored and Dave Airlie committed Mar 24, 2011
1 parent 7f447e3 commit b466e56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: fafcf94e2b5732d1e13b440291c53115d2b172e9
refs/heads/master: 1783e4bf6f4e5c3b13c09aff24da7dcc69fb3e2f
8 changes: 5 additions & 3 deletions trunk/drivers/gpu/drm/radeon/radeon_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,14 @@ static ssize_t radeon_set_pm_profile(struct device *dev,
else if (strncmp("high", buf, strlen("high")) == 0)
rdev->pm.profile = PM_PROFILE_HIGH;
else {
DRM_ERROR("invalid power profile!\n");
count = -EINVAL;
goto fail;
}
radeon_pm_update_profile(rdev);
radeon_pm_set_clocks(rdev);
}
} else
count = -EINVAL;

fail:
mutex_unlock(&rdev->pm.mutex);

Expand Down Expand Up @@ -413,7 +415,7 @@ static ssize_t radeon_set_pm_method(struct device *dev,
mutex_unlock(&rdev->pm.mutex);
cancel_delayed_work_sync(&rdev->pm.dynpm_idle_work);
} else {
DRM_ERROR("invalid power method!\n");
count = -EINVAL;
goto fail;
}
radeon_pm_compute_clocks(rdev);
Expand Down

0 comments on commit b466e56

Please sign in to comment.