From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Linux PM <linux-pm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Subject: Re: [PATCH] cpufreq: Restore policy min/max limits on CPU online
Date: Mon, 20 Mar 2017 13:30 +0100 [thread overview]
Message-ID: <3593437.Z2HPvjKf4F@aspire.rjw.lan> (raw)
In-Reply-To: <20170320032156.GG31040@vireshk-i7>
On Monday, March 20, 2017 08:51:56 AM Viresh Kumar wrote:
> On 17-03-17, 18:40, Rafael J. Wysocki wrote:
> > On Fri, Mar 17, 2017 at 5:43 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> > > On 17 March 2017 at 22:01, Rafael J. Wysocki <rafael@kernel.org> wrote:
> > >
> > >> IMO if we are not going to restore the governor, we also should not
> > >> restore the limits as those things are related. Now, the governor can
> > >> be unloaded while the CPU is offline.
> > >
> > > I thought about it earlier but then governor and policy min/max
> > > looked independent to me. Why do you think they are related?
> >
> > They are parts of one set of settings.
> >
> > If the governor is not restored, the policy starts with the default
> > one, so why would it not start with the default limits then?
>
> Do we reset the limits when we change governor's normally? No. Then
> why should we consider suspend/resume special in that sense? These are
> completely different and independent settings which user has done and
> we don't really need to relate them.
>
> > My opinion is that either we restore everything the way it was, or we
> > start afresh entirely.
>
> What about fields like: policy->user_policy.*? They aren't reset for
> existing policies if the last governor isn't found. And there are
> drivers which call cpufreq_update_policy(), and that would mean that
> the CPU will come back to user defined policies before system
> suspended. And that kind of defeats whatever you were trying to do in
> this patch. Isn't it?
OK, it looks like I don't care as much as you do. :-)
Send the patch with a changelog.
Thanks,
Rafael
next prev parent reply other threads:[~2017-03-20 12:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 22:42 [PATCH] cpufreq: Restore policy min/max limits on CPU online Rafael J. Wysocki
2017-03-17 3:20 ` Viresh Kumar
2017-03-17 16:31 ` Rafael J. Wysocki
2017-03-17 16:43 ` Viresh Kumar
2017-03-17 17:40 ` Rafael J. Wysocki
2017-03-20 3:21 ` Viresh Kumar
2017-03-20 12:30 ` Rafael J. Wysocki [this message]
2017-03-17 17:44 ` [PATCH v2] " Rafael J. Wysocki
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=3593437.Z2HPvjKf4F@aspire.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=viresh.kumar@linaro.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