diff options
author | Shawn Bohrer <shawn.bohrer@gmail.com> | 2010-09-29 01:12:05 +0200 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-10-07 14:27:54 -0700 |
commit | 925e9d091cedfc4b5e61e26a5df46c37433213d5 (patch) | |
tree | 2bca57f05b2920e99627be73a2e20b0d0a6d9b03 /fs/select.c | |
parent | c048851afbc1fbeada968e6a119e64d3ff057833 (diff) |
epoll: make epoll_wait use the hrtimer range feature
This make epoll use hrtimers for the timeout value which prevents
epoll_wait() from timing out up to a millisecond early.
This mirrors the behavior of select() and poll().
Change-Id: Ic6489ab6194935df348d31b8e92239227ffd3f17
Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/select.c')
-rw-r--r-- | fs/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/select.c b/fs/select.c index 5f023f911202..b7b10aa30861 100644 --- a/fs/select.c +++ b/fs/select.c @@ -67,7 +67,7 @@ static long __estimate_accuracy(struct timespec *tv) return slack; } -static long select_estimate_accuracy(struct timespec *tv) +long select_estimate_accuracy(struct timespec *tv) { unsigned long ret; struct timespec now; |