eal: use C11 atomics for initialization check
authorPhil Yang <phil.yang@arm.com>
Thu, 24 Sep 2020 05:39:25 +0000 (13:39 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 25 Sep 2020 13:36:17 +0000 (15:36 +0200)
commitc5d6c4725778ec04e50ab08b507490261740fe10
tree75d6d20f38c6f309e57f1499ba9daae931d5c5c9
parent84fb33fec179ea96f814aed9f658d5a2df20745d
eal: use C11 atomics for initialization check

Since rte_atomicXX APIs are not allowed to be used, use C11 builtins to
check if EAL is already initialized.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
lib/librte_eal/freebsd/eal.c
lib/librte_eal/linux/eal.c