diff options
author | Colin Cross <ccross@android.com> | 2010-11-03 23:15:07 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-11-04 12:10:08 -0700 |
commit | 56ee87864606dbf8534962b0c3594629f01eaf47 (patch) | |
tree | ad34892c2c4a29a1ce08c3986b005fcec0bd34e6 /kernel | |
parent | b0ca42f68a25d3e3f4541411925f8fb837a3cdd0 (diff) |
pm_qos: Fix reversed min and max
pm_qos_get_value had min and max reversed, causing all pm_qos
requests to have no effect. Broken by the plist conversion,
sha 5f279845f9d684661563894d44729a0c706375b4.
Change-Id: I252c764821eac8d94de57eb482c05bf6afcea15b
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: mark gross <markgross@thegnar.org>
Cc: James Bottomley <James.Bottomley@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/pm_qos_params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c index 645e541a45f6..0da2837416eb 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c @@ -120,10 +120,10 @@ static inline int pm_qos_get_value(struct pm_qos_object *o) switch (o->type) { case PM_QOS_MIN: - return plist_last(&o->requests)->prio; + return plist_first(&o->requests)->prio; case PM_QOS_MAX: - return plist_first(&o->requests)->prio; + return plist_last(&o->requests)->prio; default: /* runtime check for not using enum */ |