From 0a14c4ce1a41bc09eb7855fa531a3af629a69139 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 13 Jun 2012 14:58:49 -0700 Subject: 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 --- services/audioflinger/FastMixer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'services/audioflinger/FastMixer.h') 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 -- cgit v1.1