diff options
author | Pavel Begunkov <[email protected]> | 2020-11-22 15:35:45 +0000 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-12-07 17:12:49 -0700 |
commit | b78beea038a3087df63bba7adaacb476a8ca95af (patch) | |
tree | 296886e70357e7c8b78718e3604126d4867c1e0e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f6f371f7db42917c7b2a861c4fc923cb352ce5a1 (diff) |
sbitmap: optimise sbitmap_deferred_clear()
Because of spinlocks and atomics sbitmap_deferred_clear() have to reload
&sb->map[index] on each access even though the map address won't change.
Pass in sbitmap_word instead of {sb, index}, so it's cached in a
variable. It also improves code generation of
sbitmap_find_bit_in_index().
Signed-off-by: Pavel Begunkov <[email protected]>
Reviewed-by: John Garry <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions