]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
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, 13 Apr 2012 10:29:16 +0000 (11:29 +0100)
commita42678c4c8b5f6d489829ffc3071fa1f08ee99d1
tree94d3445cc6e269686d759f319b9bc38a316bb7e4
parent26b5e74d318241d95430d440e43ebbdfab3c70d4
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