epoll: make epoll_wait use the hrtimer range feature
authorShawn Bohrer <shawn.bohrer@gmail.com>
Tue, 28 Sep 2010 23:12:05 +0000 (01:12 +0200)
committerColin Cross <ccross@android.com>
Thu, 7 Oct 2010 21:27:54 +0000 (14:27 -0700)
commit925e9d091cedfc4b5e61e26a5df46c37433213d5
tree2bca57f05b2920e99627be73a2e20b0d0a6d9b03
parentc048851afbc1fbeada968e6a119e64d3ff057833
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>
fs/eventpoll.c
fs/select.c
include/linux/poll.h