[PATCH] Fix timeout overflow with jiffies
authorIngo Molnar <mingo@elte.hu>
Fri, 16 Feb 2007 09:27:29 +0000 (01:27 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 16 Feb 2007 16:13:56 +0000 (08:13 -0800)
commit9f907c0144496e464bd5ed5a99a51227d63a9c0b
tree84adb214bab37327d4806ca5d0b91c3ba24c73ad
parent41cf54455da5e5dc847a9733d49ca23b5e7dd59e
[PATCH] Fix timeout overflow with jiffies

Prevent timeout overflow if timer ticks are behind jiffies (due to high
softirq load or due to dyntick), by limiting the valid timeout range to
MAX_LONG/2.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/jiffies.h