]> git.baikalelectronics.ru Git - kernel.git/commit
select: switch select() and poll() over to hrtimers
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 31 Aug 2008 15:26:40 +0000 (08:26 -0700)
committerArjan van de Ven <arjan@linux.intel.com>
Sat, 6 Sep 2008 04:35:03 +0000 (21:35 -0700)
commitbac1c2b7be2d0a3c52526488f024def721880ca7
tree526886377ca92a62f030c25bc8f91f13a6f991eb
parent541ce2de3c669b4cf85ee38927af22fb36ee6230
select: switch select() and poll() over to hrtimers

With lots of help, input and cleanups from Thomas Gleixner

This patch switches select() and poll() over to hrtimers.

The core of the patch is replacing the "s64 timeout" with a
"struct timespec end_time" in all the plumbing.

But most of the diffstat comes from using the just introduced helpers:
poll_select_set_timeout
poll_select_copy_remaining
timespec_add_safe
which make manipulating the timespec easier and less error-prone.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
fs/compat.c
fs/select.c
include/linux/poll.h