diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-10-07 16:17:57 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-10-07 16:17:57 -0700 |
commit | dc4c5bf55ae7a7022cedb5ea46621c9f574a597e (patch) | |
tree | 0a0c1404e4b5d0a2f019cb3ccb089f6fb0efcfed /include | |
parent | 95cefd9bdc01dceff188efece588ec420778414d (diff) | |
download | frameworks_native-dc4c5bf55ae7a7022cedb5ea46621c9f574a597e.zip frameworks_native-dc4c5bf55ae7a7022cedb5ea46621c9f574a597e.tar.gz frameworks_native-dc4c5bf55ae7a7022cedb5ea46621c9f574a597e.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
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/Looper.h | 8 |
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 |