Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
bihash: give hint to CPU that we are spinlocking
[vpp.git]
/
src
/
vppinfra
/
bihash_template.c
diff --git
a/src/vppinfra/bihash_template.c
b/src/vppinfra/bihash_template.c
index
af624fe
..
8a6fa16
100644
(file)
--- a/
src/vppinfra/bihash_template.c
+++ b/
src/vppinfra/bihash_template.c
@@
-508,7
+508,7
@@
int BV (clib_bihash_search)
{
volatile BVT (clib_bihash_bucket) * bv = b;
while (bv->lock)
- ;
+
CLIB_PAUSE ()
;
}
hash >>= h->log2_nbuckets;