projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
678e7df
)
drm/radeon/kms/pm: don't enable pm if there is only on power state
author
Alex Deucher
<alexdeucher@gmail.com>
Wed, 24 Mar 2010 15:32:29 +0000
(11:32 -0400)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 18 May 2010 08:21:05 +0000
(18:21 +1000)
Just adds overhead when the power state will never change.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_pm.c
b/drivers/gpu/drm/radeon/radeon_pm.c
index a137ee2f722cf640aa94616ea7e72faaabded297..811126464a7ba625a532538450a7e64080743426 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_pm.c
+++ b/
drivers/gpu/drm/radeon/radeon_pm.c
@@
-113,7
+113,7
@@
int radeon_pm_init(struct radeon_device *rdev)
INIT_DELAYED_WORK(&rdev->pm.idle_work, radeon_pm_idle_work_handler);
- if (
radeon_dynpm != -1 && radeon_dynpm
) {
+ if (
(radeon_dynpm != -1 && radeon_dynpm) && (rdev->pm.num_power_states > 1)
) {
rdev->pm.state = PM_STATE_PAUSED;
DRM_INFO("radeon: dynamic power management enabled\n");
}