]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
eal: remove redundant atomic API description
[dpdk.git] / lib / librte_eal / common / include / arch / ppc_64 / rte_atomic.h
index ce38350bdc89c192095b9742c00091e3d7fb376c..d6d4014c2aeffb742fcc8d99485814b13991dc02 100644 (file)
@@ -49,37 +49,11 @@ extern "C" {
 #include <stdint.h>
 #include "generic/rte_atomic.h"
 
-/**
- * General memory barrier.
- *
- * Guarantees that the LOAD and STORE operations generated before the
- * barrier occur before the LOAD and STORE operations generated after.
- */
 #define        rte_mb()  asm volatile("sync" : : : "memory")
 
-/**
- * Write memory barrier.
- *
- * Guarantees that the STORE operations generated before the barrier
- * occur before the STORE operations generated after.
- */
-#ifdef RTE_ARCH_64
-#define        rte_wmb() asm volatile("lwsync" : : : "memory")
-#else
 #define        rte_wmb() asm volatile("sync" : : : "memory")
-#endif
 
-/**
- * Read memory barrier.
- *
- * Guarantees that the LOAD operations generated before the barrier
- * occur before the LOAD operations generated after.
- */
-#ifdef RTE_ARCH_64
-#define        rte_rmb() asm volatile("lwsync" : : : "memory")
-#else
 #define        rte_rmb() asm volatile("sync" : : : "memory")
-#endif
 
 #define rte_smp_mb() rte_mb()