epoll: make epoll_wait() use the hrtimer range feature
authorShawn Bohrer <shawn.bohrer@gmail.com>
Wed, 27 Oct 2010 22:34:54 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:18 +0000 (18:03 -0700)
commit95aac7b1cd224f568fb83937044cd303ff11b029
tree24c08cfe031ecc0549cf3f7900e992a27044c4ad
parent231f3d393f63f6e3b505afa179999bba491d0f08
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().

Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventpoll.c
fs/select.c
include/linux/poll.h