summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Android.mk
diff options
context:
space:
mode:
authorAlex Ray <aray@google.com>2012-11-30 19:42:28 -0800
committerAlex Ray <aray@google.com>2012-11-30 19:44:24 -0800
commitb3a8364eeea621ef63b983e4c1b0771f62069fe0 (patch)
tree646bee189a8f77d41e87ffc42af3dd097f5ec254 /services/audioflinger/Android.mk
parentece53e018b38794f7cdf978a605f943f9ec96c3b (diff)
downloadframeworks_av-b3a8364eeea621ef63b983e4c1b0771f62069fe0.zip
frameworks_av-b3a8364eeea621ef63b983e4c1b0771f62069fe0.tar.gz
frameworks_av-b3a8364eeea621ef63b983e4c1b0771f62069fe0.tar.bz2
audioflinger: define ANDROID_SMP, remove conditional tracing
With ANDROID_SMP set, tracing functionality is completely inline, and without the performance hits of external library calls, tracing does not need to be conditionally compiled. Change-Id: I4b29a9a52c403f0d2ea137c5b7bc05a518a7ca4b
Diffstat (limited to 'services/audioflinger/Android.mk')
-rw-r--r--services/audioflinger/Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/audioflinger/Android.mk b/services/audioflinger/Android.mk
index dc65833..6d42143 100644
--- a/services/audioflinger/Android.mk
+++ b/services/audioflinger/Android.mk
@@ -78,6 +78,13 @@ LOCAL_CFLAGS += -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
# LOCAL_SRC_FILES += AudioWatchdog.cpp
# LOCAL_CFLAGS += -DAUDIO_WATCHDOG
+# Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
+ifeq ($(TARGET_CPU_SMP),true)
+ LOCAL_CFLAGS += -DANDROID_SMP=1
+else
+ LOCAL_CFLAGS += -DANDROID_SMP=0
+endif
+
include $(BUILD_SHARED_LIBRARY)
#