android_kernel_xiaomi_sm8350/arch/s390/kernel
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
..
asm-offsets.c
binfmt_elf32.c [PATCH] s390: task_pt_regs() 2006-01-12 09:08:54 -08:00
bitmap.S
compat_exec_domain.c
compat_linux.c [PATCH] consolidate sys32/compat_adjtimex 2006-03-26 08:56:57 -08:00
compat_linux.h
compat_ptrace.h
compat_signal.c [PATCH] s390: alternate signal stack handling bug 2006-04-28 08:33:47 -07:00
compat_wrapper.S [PATCH] s390: add vmsplice system call 2006-05-15 11:20:55 -07:00
cpcmd.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
crash.c [PATCH] kdump: dynamic per cpu allocation of memory for saving cpu registers 2006-01-10 08:01:26 -08:00
debug.c [PATCH] s390: kzalloc() conversion in arch/s390 2006-03-24 07:33:18 -08:00
ebcdic.c
entry64.S [PATCH] s390: Add support for new syscalls/TIF_RESTORE_SIGMASK 2006-02-01 08:53:24 -08:00
entry.S [PATCH] s390: Add support for new syscalls/TIF_RESTORE_SIGMASK 2006-02-01 08:53:24 -08:00
head31.S
head64.S
head.S [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
init_task.c
irq.c
machine_kexec.c [PATCH] s390: fix non smp build of kexec 2006-02-11 21:41:12 -08:00
Makefile [PATCH] sanitize building of fs/compat_ioctl.c 2006-01-10 08:01:33 -08:00
module.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
process.c [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
profile.c
ptrace.c [PATCH] drop task argument of audit_syscall_{entry,exit} 2006-05-01 06:06:18 -04:00
reipl64.S
reipl_diag.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
reipl.S
relocate_kernel64.S
relocate_kernel.S
s390_ext.c
s390_ksyms.c [PATCH] don't include ioctl32.h in drivers 2006-01-10 08:01:34 -08:00
semaphore.c
setup.c [PATCH] s390: early parameter parsing 2006-03-24 07:33:16 -08:00
signal.c [PATCH] s390: bug in setup_rt_frame 2006-05-01 18:17:46 -07:00
smp.c [PATCH] for_each_possible_cpu: s390 2006-03-31 12:18:52 -08:00
sys_s390.c [PATCH] s390 misc __user annotations 2006-02-08 01:04:23 -05:00
syscalls.S [PATCH] s390: add vmsplice system call 2006-05-15 11:20:55 -07:00
time.c [PATCH] s390: next_timer_interrupt overflow in stop_hz_timer 2006-05-21 12:59:21 -07:00
traps.c [PATCH] s390 misc __user annotations 2006-02-08 01:04:23 -05:00
vmlinux.lds.S [PATCH] s390: add read_mostly optimization 2006-04-28 08:33:48 -07:00
vtime.c [PATCH] s390: cputime misaccounting 2006-01-14 18:27:09 -08:00