From fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aa Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 28 May 2010 13:31:45 -0700 Subject: Atomic/SMP update, part 3. Update ARM atomic ops to use LDREX/STREX. Stripped out #if 0 chunk. Insert explicit memory barriers in pthread and semaphore code. For bug 2721865. Change-Id: I0f153b797753a655702d8be41679273d1d5d6ae7 --- libc/Android.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/Android.mk') diff --git a/libc/Android.mk b/libc/Android.mk index 0271f10..831352b 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -455,6 +455,14 @@ else # !arm endif # x86 endif # !arm +# Define ANDROID_SMP appropriately. +ifeq ($(TARGET_CPU_SMP),true) + libc_common_cflags += -DANDROID_SMP=1 +else + libc_common_cflags += -DANDROID_SMP=0 +endif + + # Define some common includes # ======================================================== libc_common_c_includes := \ -- cgit v1.1