From: Antti P Miettinen <amiettinen@nvidia.com>
To: linux-pm@lists.linux-foundation.org
Cc: cpufreq@vger.kernel.org
Subject: Re: [PATCH 4/6] cpufreq: Preserve sysfs min/max request
Date: Wed, 11 Jan 2012 23:56:58 +0200 [thread overview]
Message-ID: <87mx9tdhsl.fsf@amiettinen-lnx.nvidia.com> (raw)
In-Reply-To: 1325844234-478-5-git-send-email-amiettinen@nvidia.com
Any comments to this change?
Antti P Miettinen <amiettinen@nvidia.com> writes:
> Store the value received via sysfs as the user_policy
> min/max value instead of the currently enforced min/max.
> This allows restoring the user min/max values when
> constraints on enforced min/max change.
>
> Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
> ---
> drivers/cpufreq/cpufreq.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index e63b29f..65a512b 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -389,7 +389,7 @@ static ssize_t store_##file_name \
> return -EINVAL; \
> \
> ret = __cpufreq_set_policy(policy, &new_policy); \
> - policy->user_policy.object = policy->object; \
> + policy->user_policy.object = new_policy.object; \
> \
> return ret ? ret : count; \
> }
--Antti
next parent reply other threads:[~2012-01-11 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1325844234-478-1-git-send-email-amiettinen@nvidia.com>
[not found] ` <1325844234-478-5-git-send-email-amiettinen@nvidia.com>
2012-01-11 21:56 ` Antti P Miettinen [this message]
2012-01-06 0:36 [PATCH 0/6] RFC: CPU frequency min/max as PM QoS params Antti P Miettinen
2012-01-06 0:36 ` [PATCH 4/6] cpufreq: Preserve sysfs min/max request Antti P Miettinen
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=87mx9tdhsl.fsf@amiettinen-lnx.nvidia.com \
--to=amiettinen@nvidia.com \
--cc=cpufreq@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox