mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Linux PM list <linux-pm@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	Steve Muckle <steve.muckle@linaro.org>,
	Juri Lelli <juri.lelli@arm.com>, Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH v2 1/2] cpufreq / sched: Pass flags to cpufreq_update_util()
Date: Sat, 20 Aug 2016 03:08:01 +0200	[thread overview]
Message-ID: <25822023.SGCZQcEZuy@vostro.rjw.lan> (raw)
In-Reply-To: <CAJKOXPdjkO4ZvQ1kijfVCMKaNBaoYDEOZpQ-+ZmyWVpL1jdPpg@mail.gmail.com>

On Friday, August 19, 2016 03:26:21 PM Krzysztof Kozlowski wrote:
> On Fri, Aug 12, 2016 at 2:04 AM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >
> > It is useful to know the reason why cpufreq_update_util() has just
> > been called and that can be passed as flags to cpufreq_update_util()
> > and to the ->func() callback in struct update_util_data.  However,
> > doing that in addition to passing the util and max arguments they
> > already take would be clumsy, so avoid it.
> >
> > Instead, use the observation that the schedutil governor is part
> > of the scheduler proper, so it can access scheduler data directly.
> > This allows the util and max arguments of cpufreq_update_util()
> > and the ->func() callback in struct update_util_data to be replaced
> > with a flags one, but schedutil has to be modified to follow.
> >
> > Thus make the schedutil governor obtain the CFS utilization
> > information from the scheduler and use the "RT" and "DL" flags
> > instead of the special utilization value of ULONG_MAX to track
> > updates from the RT and DL sched classes.  Make it non-modular
> > too to avoid having to export scheduler variables to modules at
> > large.
> >
> > Next, update all of the other users of cpufreq_update_util()
> > and the ->func() callback in struct update_util_data accordingly.
> >
> > Suggested-by: Peter Zijlstra <peterz@infradead.org>
> > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> > ---
> >
> > v1 -> v2: Do not check cpu_of(rq) against smp_processor_id() in
> >           cfs_rq_util_change().
> >
> > ---
> >  drivers/cpufreq/Kconfig            |    5 --
> >  drivers/cpufreq/cpufreq_governor.c |    2 -
> >  drivers/cpufreq/intel_pstate.c     |    2 -
> >  include/linux/sched.h              |   12 ++++--
> >  kernel/sched/cpufreq.c             |    2 -
> >  kernel/sched/cpufreq_schedutil.c   |   67 ++++++++++++++++++++-----------------
> >  kernel/sched/deadline.c            |    4 +-
> >  kernel/sched/fair.c                |   10 +----
> >  kernel/sched/rt.c                  |    4 +-
> >  kernel/sched/sched.h               |   31 +++++------------
> >  10 files changed, 66 insertions(+), 73 deletions(-)
> 
> (...)
> 
> > --- linux-pm.orig/drivers/cpufreq/Kconfig
> > +++ linux-pm/drivers/cpufreq/Kconfig
> > @@ -194,7 +194,7 @@ config CPU_FREQ_GOV_CONSERVATIVE
> >           If in doubt, say N.
> >
> >  config CPU_FREQ_GOV_SCHEDUTIL
> > -       tristate "'schedutil' cpufreq policy governor"
> > +       bool "'schedutil' cpufreq policy governor"
> 
> If you change such symbols please remember to update also all the
> defconfigs. Without the update they start to show errors.

Are there defconfigs that use this particular one?

Thanks,
Rafael

  reply	other threads:[~2016-08-20  1:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12  0:01 [PATCH v2 0/2] cpufreq / sched: Rework of cpufreq_update_util() arguments Rafael J. Wysocki
2016-08-12  0:04 ` [PATCH v2 1/2] cpufreq / sched: Pass flags to cpufreq_update_util() Rafael J. Wysocki
2016-08-15 22:15   ` Steve Muckle
2016-08-19 13:26   ` Krzysztof Kozlowski
2016-08-20  1:08     ` Rafael J. Wysocki [this message]
2016-08-20 15:40       ` Krzysztof Kozlowski
2016-08-22 17:30         ` Rafael J. Wysocki
2016-08-24  4:53           ` Krzysztof Kozlowski
2016-08-12  0:06 ` [PATCH v2 2/2] cpufreq / sched: Pass runqueue pointer " Rafael J. Wysocki
2016-08-15 22:16   ` Steve Muckle
2016-08-16  9:51 ` [PATCH v2 0/2] cpufreq / sched: Rework of cpufreq_update_util() arguments Viresh Kumar
2016-08-16 12:00 ` Peter Zijlstra

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=25822023.SGCZQcEZuy@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=juri.lelli@arm.com \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=srinivas.pandruvada@linux.intel.com \
    --cc=steve.muckle@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®