From: Felipe Balbi <balbi@ti.com>
To: Michael Turquette <mturquette@baylibre.com>
Cc: <balbi@ti.com>, <peterz@infradead.org>, <mingo@kernel.org>,
<linux-kernel@vger.kernel.org>, <preeti@linux.vnet.ibm.com>,
<Morten.Rasmussen@arm.com>, <riel@redhat.com>, <efault@gmx.de>,
<nicolas.pitre@linaro.org>, <daniel.lezcano@linaro.org>,
<dietmar.eggemann@arm.com>, <vincent.guittot@linaro.org>,
<amit.kucheria@linaro.org>, <juri.lelli@arm.com>,
<rjw@rjwysocki.net>, <viresh.kumar@linaro.org>,
<ashwin.chaugule@linaro.org>, <alex.shi@linaro.org>,
<linux-pm@vger.kernel.org>, <abelvesa@gmail.com>,
<pebolle@tiscali.nl>
Subject: Re: [PATCH v3 3/4] sched: scheduler-driven cpu frequency selection
Date: Mon, 29 Jun 2015 11:55:16 -0500 [thread overview]
Message-ID: <20150629165516.GB32758@saruman.tx.rr.com> (raw)
In-Reply-To: <20150629164943.9112.4253@quantum>
[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]
Hi,
On Mon, Jun 29, 2015 at 09:49:43AM -0700, Michael Turquette wrote:
<snip>
> > > +static int cpufreq_sched_stop(struct cpufreq_policy *policy)
> > > +{
> > > + struct gov_data *gd = policy->governor_data;
> > > +
> > > + if (cpufreq_driver_might_sleep()) {
> >
> > unnecessary curly braces.
> >
> > > + kthread_stop(gd->task);
> >
>
> Thanks for the review. I'll take into account everything above.
>
> > should you switch back to some default OPP when this is removed ? Some
> > SoCs can't run at certain OPPs forever (thermal limitations, or whatever
> > else), might be good to switch to something considered safe.
>
> The above only happens when we unload the module or switch governors,
> and every governor has this characteristic.
>
> I do not think that open-coding a return to some default opp in every
> governor is a good solution. This sounds like something the cpufreq core
> should take care of.
indeed.
> Also, how do we know which opp is safe?
no idea, that needs to be described somehow.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-06-29 16:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 23:53 [PATCH v3 0/4] " Michael Turquette
2015-06-26 23:53 ` [PATCH v3 1/4] arm: Frequency invariant scheduler load-tracking support Michael Turquette
2015-06-26 23:53 ` [PATCH v3 2/4] cpufreq: introduce cpufreq_driver_might_sleep Michael Turquette
2015-06-27 0:48 ` Felipe Balbi
[not found] ` <20150629162621.9112.4040@quantum>
2015-06-29 16:39 ` Felipe Balbi
2015-06-29 16:56 ` Michael Turquette
2015-06-29 17:03 ` Felipe Balbi
2015-06-29 17:10 ` Michael Turquette
2015-06-26 23:53 ` [PATCH v3 3/4] sched: scheduler-driven cpu frequency selection Michael Turquette
2015-06-27 0:47 ` Felipe Balbi
[not found] ` <20150629164943.9112.4253@quantum>
2015-06-29 16:55 ` Felipe Balbi [this message]
2015-07-06 20:06 ` Dietmar Eggemann
2015-06-26 23:53 ` [PATCH v3 4/4] [RFC] sched: cfs: cpu frequency scaling policy Michael Turquette
2015-07-03 9:57 ` [PATCH v3 0/4] scheduler-driven cpu frequency selection Vincent Guittot
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=20150629165516.GB32758@saruman.tx.rr.com \
--to=balbi@ti.com \
--cc=Morten.Rasmussen@arm.com \
--cc=abelvesa@gmail.com \
--cc=alex.shi@linaro.org \
--cc=amit.kucheria@linaro.org \
--cc=ashwin.chaugule@linaro.org \
--cc=daniel.lezcano@linaro.org \
--cc=dietmar.eggemann@arm.com \
--cc=efault@gmx.de \
--cc=juri.lelli@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mturquette@baylibre.com \
--cc=nicolas.pitre@linaro.org \
--cc=pebolle@tiscali.nl \
--cc=peterz@infradead.org \
--cc=preeti@linux.vnet.ibm.com \
--cc=riel@redhat.com \
--cc=rjw@rjwysocki.net \
--cc=vincent.guittot@linaro.org \
--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®