test/spinlock: use compile atomics for lcores sync
authorJoyce Kong <joyce.kong@arm.com>
Tue, 20 Jul 2021 03:51:19 +0000 (22:51 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 30 Jul 2021 17:06:35 +0000 (19:06 +0200)
commitd2794d6719db49ede1370d1be2d56bd96d73c418
treeb2c45f9fdf6c92d58b9e3d70a5c569d48a83fb3c
parentf11bdb206a55c1d604455b64f636bca034680e85
test/spinlock: use compile atomics for lcores sync

Convert rte_atomic usages to compiler atomic built-ins for lcores
sync in spinlock testcases.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
app/test/test_spinlock.c