]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_rcu/rte_rcu_qsbr.h
common/cnxk: add SSO HWS interface
[dpdk.git] / lib / librte_rcu / rte_rcu_qsbr.h
index fa2b881bd0408754c65e2b56cfb4faefd74f23d6..18811c1cc10638e1f12267078891f9aa4fc7b2b8 100644 (file)
@@ -329,12 +329,7 @@ rte_rcu_qsbr_thread_online(struct rte_rcu_qsbr *v, unsigned int thread_id)
         * writer might not see that the reader is online, even though
         * the reader is referencing the shared data structure.
         */
-#ifdef RTE_ARCH_X86_64
-       /* rte_smp_mb() for x86 is lighter */
-       rte_smp_mb();
-#else
-       __atomic_thread_fence(__ATOMIC_SEQ_CST);
-#endif
+       rte_atomic_thread_fence(__ATOMIC_SEQ_CST);
 }
 
 /**