eal/arm: separate SMP barrier definition for ARMv7 and ARMv8
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 18 Jan 2017 01:21:18 +0000 (06:51 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Jan 2017 15:57:11 +0000 (16:57 +0100)
Separate the smp barrier definition for arm and arm64 for fine
control on smp barrier definition for each architecture.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eal/common/include/arch/arm/rte_atomic.h
lib/librte_eal/common/include/arch/arm/rte_atomic_32.h
lib/librte_eal/common/include/arch/arm/rte_atomic_64.h

index 454a12b..f3f3b6e 100644 (file)
 #include <rte_atomic_32.h>
 #endif
 
-#define rte_smp_mb() rte_mb()
-
-#define rte_smp_wmb() rte_wmb()
-
-#define rte_smp_rmb() rte_rmb()
-
 #endif /* _RTE_ATOMIC_ARM_H_ */
index 9ae1e78..dd627a0 100644 (file)
@@ -67,6 +67,12 @@ extern "C" {
  */
 #define        rte_rmb() __sync_synchronize()
 
+#define rte_smp_mb() rte_mb()
+
+#define rte_smp_wmb() rte_wmb()
+
+#define rte_smp_rmb() rte_rmb()
+
 #ifdef __cplusplus
 }
 #endif
index 671caa7..d854aac 100644 (file)
@@ -81,6 +81,12 @@ static inline void rte_rmb(void)
        dmb(ishld);
 }
 
+#define rte_smp_mb() rte_mb()
+
+#define rte_smp_wmb() rte_wmb()
+
+#define rte_smp_rmb() rte_rmb()
+
 #ifdef __cplusplus
 }
 #endif