aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp/stats/stats_to_be_deprecated.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp/stats/stats_to_be_deprecated.c')
-rw-r--r--src/vpp/stats/stats_to_be_deprecated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpp/stats/stats_to_be_deprecated.c b/src/vpp/stats/stats_to_be_deprecated.c
index 94d68c839d5..241bdd978df 100644
--- a/src/vpp/stats/stats_to_be_deprecated.c
+++ b/src/vpp/stats/stats_to_be_deprecated.c
@@ -221,7 +221,7 @@ dslock (stats_main_t * sm, int release_hint, int tag)
if (release_hint)
l->release_hint++;
- while (__sync_lock_test_and_set (&l->lock, 1))
+ while (clib_atomic_test_and_set (&l->lock))
/* zzzz */ ;
l->tag = tag;
l->thread_index = thread_index;