Re: regmap: no indexed caching?

From: Mark Brown
Date: Thu Jan 19 2012 - 06:39:17 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/