summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Android.mk
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-06-13 14:58:49 -0700
committerGlenn Kasten <gkasten@google.com>2012-06-14 17:49:31 -0700
commit0a14c4ce1a41bc09eb7855fa531a3af629a69139 (patch)
treedfde5cdadeea7bbbdb8e50477ca35ac4768693f0 /services/audioflinger/Android.mk
parent362ebcbf100f7fccd37551c77e67c4faa7241b63 (diff)
downloadframeworks_av-0a14c4ce1a41bc09eb7855fa531a3af629a69139.zip
frameworks_av-0a14c4ce1a41bc09eb7855fa531a3af629a69139.tar.gz
frameworks_av-0a14c4ce1a41bc09eb7855fa531a3af629a69139.tar.bz2
Make CPU frequency statistics optional
Certain CPUs with dynamic cluster swapping and hotplug don't report CPU frequency accurately. The file descriptors used to read the frequency become stale and report bogus data. So make this feature a build time option for debugging only. This will also improve performance of the fast mixer loop. Change-Id: I602f81ec3281a37992769208be08084ed1469e8c
Diffstat (limited to 'services/audioflinger/Android.mk')
-rw-r--r--services/audioflinger/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/Android.mk b/services/audioflinger/Android.mk
index f32d90f..8473fab 100644
--- a/services/audioflinger/Android.mk
+++ b/services/audioflinger/Android.mk
@@ -84,6 +84,9 @@ LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp
LOCAL_CFLAGS += -DFAST_MIXER_STATISTICS
+# uncomment to display CPU load adjusted for CPU frequency
+# LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS
+
LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
LOCAL_CFLAGS += -DHAVE_REQUEST_PRIORITY -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE -USOAKER