All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Muckle <steve.muckle@linaro.org>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Steve Muckle <steve.muckle@linaro.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Rafael Wysocki <rjw@rjwysocki.net>,
	Lists linaro-kernel <linaro-kernel@lists.linaro.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Subject: Re: [PATCH 0/2] cpufreq: Use sorted frequency tables
Date: Wed, 1 Jun 2016 12:23:21 -0700	[thread overview]
Message-ID: <20160601192321.GO9864@graphite.smuckle.net> (raw)
In-Reply-To: <20160601104612.GM3725@vireshk-i7>

On Wed, Jun 01, 2016 at 04:16:12PM +0530, Viresh Kumar wrote:
> On 31-05-16, 18:08, Steve Muckle wrote:
> > Checking the table type
> 
> I hope you are talking about my patch here and in that case its not
> table-type, but relation-type.

I was referring to Rafael's comment about having the core check how the
table was sorted and process it accordingly. It doesn't apply to the
approach in your patches.

> 
> > and performing the associated lookup seems
> > workable to me though it adds a bit of complexity.
> > 
> > Also what about leaving it as is?
> 
> So, your series kind of just triggered this thing, but freq matching
> should always be really fast. And I feel that we should attempt to
> making it fast.

I agree with that goal.

> 
> > I didn't fully catch the concern with
> > abuse in the series I posted, and it pushes this complexity of dealing
> > with the freq table efficiently down into the driver, which is best
> > suited for that IMO.
> 
> Not really. Its a single driver today, it will be 20 drivers tomorrow.
> We really want to do such common stuff in core whenever it is
> possible.
> 
> > Another thought is that it'd be nice to eventually reduce
> > cpufreq_driver_{fast_switch,resolve_freq} into simple inline functions
> > so that we could jump to the driver directly from schedutil, eliminating
> > a function call.
> 
> That's kind of orthogonal to this :)

Handling freq table walking exclusively in cpufreq core will add to the
size of stuff to be inlined in schedutil to avoid extra function calls.	

thanks,
Steve


  reply	other threads:[~2016-06-01 19:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 11:36 [PATCH 0/2] cpufreq: Use sorted frequency tables Viresh Kumar
2016-05-31 11:36 ` [PATCH 1/2] cpufreq: Store sorted frequency table Viresh Kumar
2016-05-31 11:36 ` [PATCH 2/2] cpufreq: Implement cpufreq_find_target_index() to traverse sorted list Viresh Kumar
2016-05-31 22:50 ` [PATCH 0/2] cpufreq: Use sorted frequency tables Rafael J. Wysocki
2016-06-01  1:08   ` Steve Muckle
2016-06-01 10:46     ` Viresh Kumar
2016-06-01 19:23       ` Steve Muckle [this message]
2016-06-01 16:40     ` Rafael J. Wysocki
2016-06-01 19:37       ` Steve Muckle
2016-06-01 20:17         ` Rafael J. Wysocki
2016-06-01 10:42   ` Viresh Kumar
2016-06-01 16:37     ` Rafael J. Wysocki
2016-06-02  1:25       ` Viresh Kumar

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=20160601192321.GO9864@graphite.smuckle.net \
    --to=steve.muckle@linaro.org \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.