summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastMixer.h
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/FastMixer.h
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/FastMixer.h')
-rw-r--r--services/audioflinger/FastMixer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/FastMixer.h b/services/audioflinger/FastMixer.h
index 06e76d5..462739b 100644
--- a/services/audioflinger/FastMixer.h
+++ b/services/audioflinger/FastMixer.h
@@ -116,8 +116,10 @@ struct FastMixerDumpState {
// The elements in the *Ns arrays are in units of nanoseconds <= 3999999999.
uint32_t mMonotonicNs[kSamplingN]; // delta monotonic (wall clock) time
uint32_t mLoadNs[kSamplingN]; // delta CPU load in time
+#ifdef CPU_FREQUENCY_STATISTICS
uint32_t mCpukHz[kSamplingN]; // absolute CPU clock frequency in kHz, bits 0-3 are CPU#
#endif
+#endif
};
} // namespace android