diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2018-02-15 20:52:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-16 15:03:30 +0300 |
commit | 186ba2eec275a5e4ee09d4b6a77c619e46fab9fd (patch) | |
tree | 7131a29eed8fca67a833a37ea0bdcc54ccad6ddc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1b079ca2c2e9a4652051bc4b62a5ef83d59d86bb (diff) | |
download | linux-186ba2eec275a5e4ee09d4b6a77c619e46fab9fd.tar.xz |
regmap: Use _regmap_read in regmap_bulk_read
Bulk reads may potentially read a lot of registers and regmap_read will
take and release the regmap lock for each register. Avoid bouncing
the lock so frequently by holding the lock locally and calling
_regmap_read instead. This also has the nice side-effect that all the
reads will be done atomically so no other threads can sneak a write in
during the regmap_bulk_read.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions