Phil Yang 1028d63eb2 eventdev: use C11 atomics for lcore timer armed flag
The in_use flag is a per core variable which is not shared between
lcores in the normal case and the access of this variable should be
ordered on the same core. However, if non-EAL thread pick the highest
lcore to insert timers into, there is the possibility of conflicts
on this flag between threads. Then the atomic compare-and-swap
operation is needed.

Use the C11 atomics instead of the generic rte_atomic operations to
avoid the unnecessary barrier on aarch64.

Cc: stable@dpdk.org

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
2020-07-08 18:16:41 +02:00
..
2020-04-16 18:16:18 +02:00
2020-04-16 18:30:58 +02:00
2020-04-16 18:16:46 +02:00
2020-02-14 11:59:01 +01:00
2020-04-24 19:29:02 +02:00
2020-06-24 23:42:20 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:30:58 +02:00
2020-07-07 23:24:38 +02:00
2020-07-01 11:46:09 +02:00
2020-07-07 00:24:38 +02:00