From 901c900ce6e34f99d17718d37142822ccf517ce1 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 20 Aug 2014 13:05:55 -0700 Subject: [PATCH] There's no non-SMP LP64. Bug: 17108682 Change-Id: I7e44ab48b5cacf989333882ffe67f39e9b0ce843 --- include/cutils/atomic-arm64.h | 13 ------------- include/cutils/atomic-mips64.h | 11 ----------- include/cutils/atomic-x86_64.h | 13 ------------- 3 files changed, 37 deletions(-) diff --git a/include/cutils/atomic-arm64.h b/include/cutils/atomic-arm64.h index 4562ad0f8..ba5a218ae 100644 --- a/include/cutils/atomic-arm64.h +++ b/include/cutils/atomic-arm64.h @@ -46,18 +46,6 @@ void android_compiler_barrier(void) __asm__ __volatile__ ("" : : : "memory"); } -#if ANDROID_SMP == 0 -extern ANDROID_ATOMIC_INLINE -void android_memory_barrier(void) -{ - android_compiler_barrier(); -} -extern ANDROID_ATOMIC_INLINE -void android_memory_store_barrier(void) -{ - android_compiler_barrier(); -} -#else extern ANDROID_ATOMIC_INLINE void android_memory_barrier(void) { @@ -68,7 +56,6 @@ void android_memory_store_barrier(void) { __asm__ __volatile__ ("dmb ishst" : : : "memory"); } -#endif extern ANDROID_ATOMIC_INLINE int32_t android_atomic_acquire_load(volatile const int32_t *ptr) diff --git a/include/cutils/atomic-mips64.h b/include/cutils/atomic-mips64.h index 99bbe3a55..6215621e9 100644 --- a/include/cutils/atomic-mips64.h +++ b/include/cutils/atomic-mips64.h @@ -28,16 +28,6 @@ extern ANDROID_ATOMIC_INLINE void android_compiler_barrier(void) __asm__ __volatile__ ("" : : : "memory"); } -#if ANDROID_SMP == 0 -extern ANDROID_ATOMIC_INLINE void android_memory_barrier(void) -{ - android_compiler_barrier(); -} -extern ANDROID_ATOMIC_INLINE void android_memory_store_barrier(void) -{ - android_compiler_barrier(); -} -#else extern ANDROID_ATOMIC_INLINE void android_memory_barrier(void) { __asm__ __volatile__ ("sync" : : : "memory"); @@ -46,7 +36,6 @@ extern ANDROID_ATOMIC_INLINE void android_memory_store_barrier(void) { __asm__ __volatile__ ("sync" : : : "memory"); } -#endif extern ANDROID_ATOMIC_INLINE int32_t android_atomic_acquire_load(volatile const int32_t *ptr) diff --git a/include/cutils/atomic-x86_64.h b/include/cutils/atomic-x86_64.h index 5b5c203a2..025ba1910 100644 --- a/include/cutils/atomic-x86_64.h +++ b/include/cutils/atomic-x86_64.h @@ -41,18 +41,6 @@ void android_compiler_barrier(void) __asm__ __volatile__ ("" : : : "memory"); } -#if ANDROID_SMP == 0 -extern ANDROID_ATOMIC_INLINE -void android_memory_barrier(void) -{ - android_compiler_barrier(); -} -extern ANDROID_ATOMIC_INLINE -void android_memory_store_barrier(void) -{ - android_compiler_barrier(); -} -#else extern ANDROID_ATOMIC_INLINE void android_memory_barrier(void) { @@ -63,7 +51,6 @@ void android_memory_store_barrier(void) { android_compiler_barrier(); } -#endif extern ANDROID_ATOMIC_INLINE int32_t android_atomic_acquire_load(volatile const int32_t *ptr)