regmap: introduce fast_io busses, and use a spinlock for them
authorStephen Warren <swarren@nvidia.com>
Wed, 4 Apr 2012 21:48:28 +0000 (15:48 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Apr 2012 09:47:34 +0000 (10:47 +0100)
commitbacdbe077342ecc9e7b3e374cc5a41995116706a
treeb5cf9547a0ab4a7fba287a3d654d132869057afa
parent0135bbcc7a0cc056f0203ff839466236b8e3dc19
regmap: introduce fast_io busses, and use a spinlock for them

Some bus types have very fast IO. For these, acquiring a mutex for every
IO operation is a significant overhead. Allow busses to indicate their IO
is fast, and enhance regmap to use a spinlock for those busses.

[Currently limited to native endian registers -- broonie]

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap.c
include/linux/regmap.h