mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: regmap: no indexed caching?
Date: Thu, 19 Jan 2012 11:39:16 +0000	[thread overview]
Message-ID: <20120119113916.GE3178@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20120119113708.GC2630@pengutronix.de>

On Thu, Jan 19, 2012 at 12:37:08PM +0100, Wolfram Sang wrote:

> What about devices having just a few registers (4 in my case)? I'd think
> there are a number of such devices not yet converted to regmap. Is it
> assumed that the additional overhead from rbtree-caching will make up
> for the code saved?

There should be vanishingly little overhead from the rbtree, you'll just
end up with a single cache node containing all the registers (unless
they're widely separated numerically) - it may even be faster as we
don't need to search the array looking for the index.

      reply	other threads:[~2012-01-19 11:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-19 11:37 Wolfram Sang
2012-01-19 11:39 ` Mark Brown [this message]

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=20120119113916.GE3178@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=w.sang@pengutronix.de \
    /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

Powered by JetHome