> -----Original Message-----
> From: Phil Yang <phil.y...@arm.com>
> Sent: Thursday, July 2, 2020 12:27 AM
> To: Carrillo, Erik G <erik.g.carri...@intel.com>; dev@dpdk.org
> Cc: jer...@marvell.com; honnappa.nagaraha...@arm.com;
> d...@linux.vnet.ibm.com; ruifeng.w...@arm.com;
> dharmik.thak...@arm.com; n...@arm.com
> Subject: [PATCH v2 2/4] 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 CAS operation is needed.
> 
> Use the c11 atomic CAS instead of the generic rte_atomic operations to avoid
> the unnecessary barrier on aarch64.
> 
> Signed-off-by: Phil Yang <phil.y...@arm.com>
> Reviewed-by: Dharmik Thakkar <dharmik.thak...@arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.w...@arm.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carri...@intel.com>

Reply via email to