> -----Original Message----- > From: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > Sent: Saturday, May 2, 2020 1:03 AM > To: dev@dpdk.org; phil.y...@arm.com; Van Haaren, Harry > <harry.van.haa...@intel.com> > Cc: tho...@monjalon.net; david.march...@redhat.com; Ananyev, Konstantin > <konstantin.anan...@intel.com>; jer...@marvell.com; > hemant.agra...@nxp.com; Eads, Gage <gage.e...@intel.com>; Richardson, > Bruce <bruce.richard...@intel.com>; honnappa.nagaraha...@arm.com; > n...@arm.com > Subject: [PATCH v3 6/6] service: relax barriers with C11 atomics > > From: Phil Yang <phil.y...@arm.com> > > The runstate, comp_runstate and app_runstate are used as guard variables > in the service core lib. To guarantee the inter-threads visibility of > these guard variables, it uses rte_smp_r/wmb. This patch use c11 atomic > built-ins to relax these barriers. > > Signed-off-by: Phil Yang <phil.y...@arm.com> > Reviewed-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com>
Acked-by: Harry van Haaren <harry.van.haa...@intel.com> <snip diff>