From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Lists linaro-kernel <linaro-kernel@lists.linaro.org>,
Patch Tracking <patches@linaro.org>,
"cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Lan Tianyu <tianyu.lan@intel.com>, Nishanth Menon <nm@ti.com>,
jinchoi@broadcom.com,
Sebastian Capella <sebastian.capella@linaro.org>,
"Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
Subject: Re: [PATCH] cpufreq: suspend/resume governors with PM notifiers
Date: Thu, 21 Nov 2013 23:14:39 +0100 [thread overview]
Message-ID: <2642790.BqNcqy9aCb@vostro.rjw.lan> (raw)
In-Reply-To: <CAKohpo=e+0cpq5XfWpM6Jm0VrnzzAu-xybpucEG6sRL0ydBmLQ@mail.gmail.com>
On Thursday, November 21, 2013 09:47:20 PM Viresh Kumar wrote:
> On 21 November 2013 20:08, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > On Wednesday, November 20, 2013 11:04:28 AM Viresh Kumar wrote:
> >> On 18 November 2013 11:09, viresh kumar <viresh.kumar@linaro.org> wrote:
[...]
> Replying here to the other mail as well:
>
> On 21 November 2013 20:09, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > On Monday, November 18, 2013 09:37:39 PM Lan Tianyu wrote:
> >> Another point, I just see cpuidle_resume() and cpuidle_pause() are
> >> called in the dpm_resume_noirq and dpm_suspend_noirq(). Not sure whether
> >> this can be applied to cpufreq.
> >
> > I don't see why not.
>
> Interesting. So you would be happy if I add such calls after freezing userspace
> and before restoring it back for cpufreq?
Short-term. To be precise, governors may be stopped at the beginning of
dpm_suspend_noirq() (that is, where cpuidle_pause() is called). Analogously,
they may be started again in dpm_resume_noirq(), where cpuidle_resume() is
called. That at least would be consistent with what cpuidle already does.
That said in my opinion the appropriate long-term approach would be to split
CPU offline and online each into two parts, the "core" part and the "extras"
part, such that the "core" parts would only do the offline/online of the
cores themselves. The rest, such as cpufreq/cpuidle "offline/online" would
be done in the "extras" part.
Then, system suspend/resume will only use the "core" parts of CPU offline/online
and the handling of the things belonging to "extras" would be carried out
through CPU device suspend/resume callbacks. In turn, the "runtime" CPU offline
and online would carry out both the "extras" and "core" parts as it does today.
Makes sense?
Rafael
next prev parent reply other threads:[~2013-11-21 22:02 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 10:12 Viresh Kumar
2013-11-15 13:48 ` Nishanth Menon
2013-11-15 15:34 ` Viresh Kumar
2013-11-16 0:24 ` Rafael J. Wysocki
2013-11-16 4:31 ` viresh kumar
2013-11-16 14:29 ` Rafael J. Wysocki
2013-11-16 15:17 ` Viresh Kumar
2013-11-17 1:08 ` Rafael J. Wysocki
2013-11-17 8:22 ` viresh kumar
2013-11-17 15:09 ` Rafael J. Wysocki
2013-11-17 16:57 ` Viresh Kumar
2013-11-17 21:37 ` Rafael J. Wysocki
2013-11-18 5:39 ` viresh kumar
2013-11-18 10:57 ` Lan Tianyu
2013-11-18 11:01 ` Viresh Kumar
2013-11-18 13:37 ` Lan Tianyu
2013-11-18 15:32 ` Viresh Kumar
2013-11-21 14:39 ` Rafael J. Wysocki
2013-11-20 5:34 ` Viresh Kumar
2013-11-21 1:07 ` Rafael J. Wysocki
2013-11-21 14:38 ` Rafael J. Wysocki
2013-11-21 16:17 ` Viresh Kumar
2013-11-21 22:14 ` Rafael J. Wysocki [this message]
2013-11-22 9:11 ` viresh kumar
2013-11-25 4:25 ` Viresh Kumar
2013-11-25 11:35 ` Rafael J. Wysocki
2013-12-25 22:39 ` Pavel Machek
2013-12-26 0:56 ` Rafael J. Wysocki
2013-11-16 5:56 ` Lan Tianyu
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=2642790.BqNcqy9aCb@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=cpufreq@vger.kernel.org \
--cc=jinchoi@broadcom.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nm@ti.com \
--cc=patches@linaro.org \
--cc=sebastian.capella@linaro.org \
--cc=srivatsa.bhat@linux.vnet.ibm.com \
--cc=tianyu.lan@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
all inboxes | Powered by JetHome®