summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bihash_template.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-07-20 21:48:59 +0200
committerDamjan Marion <damarion@cisco.com>2018-07-20 21:48:59 +0200
commit2a03efe4c2d716de4cfd032594f4f1e88859d3dd (patch)
treef1460045c8cae4b183b22878bee55efb54d0a06d /src/vppinfra/bihash_template.c
parent78fd7e810c24b9d638ac7c7f08edabf692543743 (diff)
bihash: give hint to CPU that we are spinlocking
Change-Id: I78c0a6da5d8fc63c1ced43589c42abc15ab12b16 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/bihash_template.c')
-rw-r--r--src/vppinfra/bihash_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index af624fee070..8a6fa16389b 100644
--- 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;