diff options
| author | Christophe JAILLET <[email protected]> | 2021-11-24 21:43:35 +0100 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-11-25 13:29:06 -0400 |
| commit | 675e2694fc6c99effd6f07df296b1d806e49ec88 (patch) | |
| tree | 68695a94a3199e56396a65bbe11ab0834e840417 /tools/perf/scripts/python/sctop.py | |
| parent | 19453f34cf4916054cbbe499fd77715fde791622 (diff) | |
IB/mthca: Use non-atomic bitmap functions when possible in 'mthca_mr.c'
In 'mthca_buddy_init()', the 'buddy->bits[n]' bitmap has just been
allocated, so no concurrent accesses can occur.
The other accesses to the 'buddy->bits[n]' bitmap are protected by the
'buddy->lock' spinlock, so no concurrent accesses can occur.
So prefer the non-atomic '__[set|clear]_bit()' functions to save a few
cycles.
Link: https://lore.kernel.org/r/a19b88ccdbc03972fd97306b998731814283041f.1637785902.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions