The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling for a memory location to become equal to a given value'[1].
Use the API for the rte spinlock and ring implementations. With the wait until equal APIs being stable, changes will not impact ABI. [1] http://patches.dpdk.org/cover/62703/ v4: Added meson option to expose WFE. (David, Bruce) v3: Series rebased. (David) Gavin Hu (1): spinlock: use wfe to reduce contention on aarch64 Ruifeng Wang (2): ring: use wfe to wait for ring tail update on aarch64 build: add option to enable wait until equal config/arm/meson.build | 2 +- lib/eal/include/generic/rte_spinlock.h | 4 ++-- lib/ring/rte_ring_c11_pvt.h | 4 ++-- lib/ring/rte_ring_generic_pvt.h | 3 +-- meson_options.txt | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-) -- 2.25.1