ticketlock: use new API to reduce contention on aarch64
authorGavin Hu <gavin.hu@arm.com>
Thu, 7 Nov 2019 21:35:26 +0000 (22:35 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 17 Jan 2020 11:02:21 +0000 (12:02 +0100)
commitb13a21890a83411ca399a74eeb785b914359171f
treea031669a262bc6b514fcdff137d5c083ebd2d6df
parent1be7855d7739d08f618abfafd0e7b05d85406289
ticketlock: use new API to reduce contention on aarch64

While using ticket lock, cores repeatedly poll the lock variable.
This is replaced by rte_wait_until_equal API.

Running ticketlock_autotest on ThunderX2, Ampere eMAG80, and Arm N1SDP[1],
there were variances between runs, but no notable performance gain or
degradation were seen with and without this patch.

[1] https://community.arm.com/developer/tools-software/oss-platforms/w/\
docs/440/neoverse-n1-sdp

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Tested-by: Phil Yang <phil.yang@arm.com>
Tested-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
lib/librte_eal/common/include/generic/rte_ticketlock.h