summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-07 16:17:57 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-07 16:17:57 -0700
commita97e50f20d39d2abf0fab77090dd82bdef4bce7a (patch)
tree27e8025752321b42eccd5611a827bf075395b14f
parentd577cfd73a223279f9a5af698f55edd38a3fe4db (diff)
downloadframeworks_base-a97e50f20d39d2abf0fab77090dd82bdef4bce7a.zip
frameworks_base-a97e50f20d39d2abf0fab77090dd82bdef4bce7a.tar.gz
frameworks_base-a97e50f20d39d2abf0fab77090dd82bdef4bce7a.tar.bz2
Revert to using epoll_wait().
This change depends on the kernel having been patched to use hrtimers instead of jiffies for scheduling epoll timeouts. Change-Id: I216bc1c4f565e67ebcb3d2ba4280cb615932bb9e
-rw-r--r--include/utils/Looper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/utils/Looper.h b/include/utils/Looper.h
index cc51490..eefff31 100644
--- a/include/utils/Looper.h
+++ b/include/utils/Looper.h
@@ -24,10 +24,10 @@
#include <android/looper.h>
-// Currently using poll() instead of epoll_wait() since it does a better job of meeting a
-// timeout deadline. epoll_wait() typically causes additional delays of up to 10ms
-// beyond the requested timeout.
-//#define LOOPER_USES_EPOLL
+// When defined, uses epoll_wait() for polling, otherwise uses poll().
+#define LOOPER_USES_EPOLL
+
+// When defined, logs performance statistics for tuning and debugging purposes.
//#define LOOPER_STATISTICS
#ifdef LOOPER_USES_EPOLL