diff mbox

[v3,9/9] linux-generic: odp_spin_internal.h: remove odp_mem_barrier

Message ID 1416868730-26140-10-git-send-email-ola.liljedahl@linaro.org
State Accepted
Commit e0411a3f3c0af88c23eb3254e56f3dd4e4f5efdb
Headers show

Commit Message

Ola Liljedahl Nov. 24, 2014, 10:38 p.m. UTC
Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org>
---
Removed odp_mem_barrier() which is a compiler only barrier and basically
useless and dangerous on all weakly ordered architectures.

 platform/linux-generic/include/odp_spin_internal.h | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_spin_internal.h b/platform/linux-generic/include/odp_spin_internal.h
index b7e2071..29c524f 100644
--- a/platform/linux-generic/include/odp_spin_internal.h
+++ b/platform/linux-generic/include/odp_spin_internal.h
@@ -15,15 +15,6 @@  extern "C" {
 
 
 /**
- * GCC memory barrier for ODP internal use
- */
-static inline void odp_mem_barrier(void)
-{
-	__asm__ __volatile__ ("" : : : "memory");
-}
-
-
-/**
  * Spin loop for ODP internal use
  */
 static inline void odp_spin(void)