kernel-ark/arch/s390
Martin Schwidefsky 92f63cd000 [PATCH] s390: next_timer_interrupt overflow in stop_hz_timer
The 32 bit unsigned substraction (next - jiffies) in stop_hz_timer can
overflow if jiffies gets advanced between next_timer_interrupt and the read
under the xtime lock.  The cast to a u64 then results in a large value
which causes the cpu to wait too long.  Fix this by casting next and
jiffies independently to u64 before subtracting them.

(Spotted by Zachary Amsden <zach@vmware.com>)

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-21 12:59:21 -07:00
..
appldata
boot
crypto
kernel [PATCH] s390: next_timer_interrupt overflow in stop_hz_timer 2006-05-21 12:59:21 -07:00
lib
math-emu
mm [PATCH] s390: segment operation error codes 2006-04-28 08:33:48 -07:00
oprofile
defconfig
Kconfig
Kconfig.debug
Makefile