ring: use WFE to wait for tail update on aarch64
authorRuifeng Wang <ruifeng.wang@arm.com>
Wed, 7 Jul 2021 05:48:38 +0000 (13:48 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 9 Jul 2021 19:33:01 +0000 (21:33 +0200)
commitcac2a49b4ae5e24078b43b2f8b7cd083f74620b9
treeb78f9ed263d07dc228f97888b54745e7c14956bc
parentfa6b488998f0a57216a02c7d0ef8ce1e24cb39fe
ring: use WFE to wait for tail update on aarch64

Instead of polling for tail to be updated, use WFE instruction.

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Ola Liljedahl <ola.liljedahl@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/ring/rte_ring_c11_pvt.h
lib/ring/rte_ring_generic_pvt.h