1
linux/arch/s390/kernel
Frederic Weisbecker 2bbb6817c0 nohz: Allow rcu extended quiescent state handling seperately from tick stop
It is assumed that rcu won't be used once we switch to tickless
mode and until we restart the tick. However this is not always
true, as in x86-64 where we dereference the idle notifiers after
the tick is stopped.

To prepare for fixing this, add two new APIs:
tick_nohz_idle_enter_norcu() and tick_nohz_idle_exit_norcu().

If no use of RCU is made in the idle loop between
tick_nohz_enter_idle() and tick_nohz_exit_idle() calls, the arch
must instead call the new *_norcu() version such that the arch doesn't
need to call rcu_idle_enter() and rcu_idle_exit().

Otherwise the arch must call tick_nohz_enter_idle() and
tick_nohz_exit_idle() and also call explicitly:

- rcu_idle_enter() after its last use of RCU before the CPU is put
to sleep.
- rcu_idle_exit() before the first use of RCU after the CPU is woken
up.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: David Miller <davem@davemloft.net>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2011-12-11 10:31:36 -08:00
..
vdso32
vdso64
asm-offsets.c [S390] signal race with restarting system calls 2011-10-30 15:16:43 +01:00
audit.c
audit.h
base.S [S390] kdump backend code 2011-10-30 15:16:42 +01:00
bitmap.c
compat_audit.c
compat_exec_domain.c
compat_linux.c [S390] sparse: fix access past end of array warnings 2011-10-30 15:16:46 +01:00
compat_linux.h
compat_ptrace.h
compat_signal.c [S390] sparse: fix sparse warnings with __user pointers 2011-10-30 15:16:46 +01:00
compat_wrapper.S [S390] wire up process_vm syscalls 2011-11-14 11:19:08 +01:00
cpcmd.c
crash_dump.c [S390] Remove error checking from copy_oldmem_page() 2011-10-30 15:16:47 +01:00
crash.c
debug.c
diag.c
dis.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
early.c [S390] avoid STCKF if running in ESA mode 2011-11-14 11:19:09 +01:00
ebcdic.c
entry64.S [S390] load user asce on sie_fault 2011-10-30 15:16:44 +01:00
entry.h [S390] sparse: fix sparse warnings about missing prototypes 2011-10-30 15:16:46 +01:00
entry.S [S390] add TIF_SYSCALL thread flag 2011-10-30 15:16:43 +01:00
ftrace.c
head31.S [S390] smp: external call vs. emergency signal 2011-10-30 15:16:44 +01:00
head64.S [S390] smp: external call vs. emergency signal 2011-10-30 15:16:44 +01:00
head_kdump.S [S390] kdump backend code 2011-10-30 15:16:42 +01:00
head.S [S390] kdump backend code 2011-10-30 15:16:42 +01:00
init_task.c
ipl.c [S390] sparse: fix sparse warnings about missing prototypes 2011-10-30 15:16:46 +01:00
irq.c [S390] irqstats: split IPI interrupt accounting 2011-10-30 15:16:47 +01:00
jump_label.c s390/jump-label: add arch_jump_label_transform_static() 2011-10-25 11:54:37 -07:00
kprobes.c [S390] sparse: fix sparse static warnings 2011-10-30 15:16:46 +01:00
machine_kexec.c [S390] cleanup psw related bits and pieces 2011-10-30 15:16:43 +01:00
Makefile [S390] kdump backend code 2011-10-30 15:16:42 +01:00
mcount64.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
mcount.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
mem_detect.c [S390] kdump backend code 2011-10-30 15:16:42 +01:00
module.c modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
nmi.c
process.c nohz: Allow rcu extended quiescent state handling seperately from tick stop 2011-12-11 10:31:36 -08:00
processor.c [S390] avoid warning in show_cpuinfo 2011-10-30 15:16:15 +01:00
ptrace.c [S390] remove reset of system call restart on psw changes 2011-12-01 13:32:17 +01:00
reipl64.S [S390] lowcore cleanup 2011-10-30 15:16:42 +01:00
reipl.S [S390] kdump backend code 2011-10-30 15:16:42 +01:00
relocate_kernel64.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
relocate_kernel.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
s390_ksyms.c
sclp.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
setup.c [S390] kdump: Replace is_kdump_kernel() with OLDMEM_BASE check 2011-12-01 13:32:17 +01:00
signal.c [S390] ptrace inferior call interactions with TIF_SYSCALL 2011-12-01 13:32:17 +01:00
smp.c [S390] irqstats: split IPI interrupt accounting 2011-10-30 15:16:47 +01:00
stacktrace.c
suspend.c [S390] sparse: fix sparse warnings about missing prototypes 2011-10-30 15:16:46 +01:00
switch_cpu64.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
switch_cpu.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
swsusp_asm64.S PM / Hibernate: Include storage keys in hibernation image on s390 2011-10-16 23:27:46 +02:00
sys_s390.c
syscalls.S [S390] wire up process_vm syscalls 2011-11-14 11:19:08 +01:00
sysinfo.c [S390] sparse: fix sparse warnings in math-emu 2011-10-30 15:16:46 +01:00
time.c [S390] sparse: fix sparse warnings about missing prototypes 2011-10-30 15:16:46 +01:00
topology.c [S390] topology: fix topology on z10 machines 2011-11-14 11:19:09 +01:00
traps.c [S390] sparse: fix sparse warnings with __user pointers 2011-10-30 15:16:46 +01:00
vdso.c
vmlinux.lds.S [S390] incorrect note program header 2011-11-14 11:19:08 +01:00
vtime.c [S390] sparse: fix sparse static warnings 2011-10-30 15:16:46 +01:00