]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blobdiff - libc/private/bionic_atomic_arm.h
Remove remaining bionic support for TARGET_CPU_SMP being false.
[android-sdk/platform-bionic.git] / libc / private / bionic_atomic_arm.h
index 023d662927f2e95df406fbf16b5115c2f095d1fb..0cb832f9757ca4621f5cf31d8a61ade505b892e0 100644 (file)
 #ifndef BIONIC_ATOMIC_ARM_H
 #define BIONIC_ATOMIC_ARM_H
 
-__ATOMIC_INLINE__ void __bionic_memory_barrier(void) {
-#if defined(ANDROID_SMP) && ANDROID_SMP == 1
-  __asm__ __volatile__ ( "dmb" : : : "memory" );
-#else
-  /* A simple compiler barrier. */
-  __asm__ __volatile__ ( "" : : : "memory" );
-#endif
+__ATOMIC_INLINE__ void __bionic_memory_barrier() {
+  __asm__ __volatile__ ( "dmb ish" : : : "memory" );
 }
 
 /* Compare-and-swap, without any explicit barriers. Note that this function