]> git.baikalelectronics.ru Git - kernel.git/commit
make sys_poll() wait at least timeout ms
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Wed, 6 Feb 2008 09:37:59 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:09 +0000 (10:41 -0800)
commitc28000f916874ee1aece3b2226d5811ee5c3080a
tree2d0108617ebff6eec82c7c21f5bdf3a7610d4525
parentadc19d3f94948f0cf5263777826d13bc4c93a559
make sys_poll() wait at least timeout ms

schedule_timeout(jiffies) waits for at least jiffies - 1.  Add 1 jiffie to
the timeout_jiffies calculated in sys_poll() to wait at least
timeout_msecs, like poll() manpage says.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/select.c