From: mark gross <markgross@thegnar.org>
To: Colin Cross <ccross@android.com>
Cc: linux-pm@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>,
mark gross <markgross@thegnar.org>,
James Bottomley <James.Bottomley@suse.de>,
stable <stable@kernel.org>
Subject: Re: [PATCH] pm_qos: Fix reversed min and max
Date: Thu, 4 Nov 2010 14:01:07 -0400 [thread overview]
Message-ID: <20101104180107.GA20826@gvim.org> (raw)
In-Reply-To: <1288852803-12356-1-git-send-email-ccross@android.com>
On Wed, Nov 03, 2010 at 11:40:03PM -0700, Colin Cross wrote:
> pm_qos_get_value had min and max reversed, causing all pm_qos
> requests to have no effect.
sorry.
Acked-by : mark <markgross@thegnar.org>
--mgross
> 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>
> ---
> 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 645e541..0da2837 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 */
> --
> 1.7.3.1
>
next prev parent reply other threads:[~2010-11-04 18:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-04 6:40 [PATCH] pm_qos: Fix reversed min and max Colin Cross
2010-11-04 18:01 ` mark gross [this message]
2010-11-11 0:52 ` Rafael J. Wysocki
2010-11-11 0:52 ` Rafael J. Wysocki
2010-11-04 18:01 ` mark gross
-- strict thread matches above, loose matches on Subject: below --
2010-11-04 6:40 Colin Cross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101104180107.GA20826@gvim.org \
--to=markgross@thegnar.org \
--cc=James.Bottomley@suse.de \
--cc=ccross@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=rjw@sisk.pl \
--cc=stable@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.