diff options
author | Andy McFadden <fadden@android.com> | 2010-05-28 13:31:45 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2010-05-28 16:12:01 -0700 |
commit | fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aa (patch) | |
tree | 859e86f36d6bf63ee284c65fff114bbbfdeff38f /libc/Android.mk | |
parent | 4fdbadde921ec17b4ff9e97fbd41096903b21772 (diff) | |
download | bionic-fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aa.zip bionic-fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aa.tar.gz bionic-fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aa.tar.bz2 |
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
Diffstat (limited to 'libc/Android.mk')
-rw-r--r-- | libc/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
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 := \ |