OpenCloudOS-Kernel/arch/xtensa/kernel
Frederic Weisbecker 11ad47a0ed xtensa: Add missing RCU idle APIs on idle loop
In the old times, the whole idle task was considered
as an RCU quiescent state. But as RCU became more and
more successful overtime, some RCU read side critical
section have been added even in the code of some
architectures idle tasks, for tracing for example.

So nowadays, rcu_idle_enter() and rcu_idle_exit() must
be called by the architecture to tell RCU about the part
in the idle loop that doesn't make use of rcu read side
critical sections, typically the part that puts the CPU
in low power mode.

This is necessary for RCU to find the quiescent states in
idle in order to complete grace periods.

Add this missing pair of calls in the xtensa's idle loop.

Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: <stable@vger.kernel.org> # 3.3+
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
2012-09-23 07:44:51 -07:00
..
Makefile xtensa: Use generic init_task 2012-05-05 13:00:26 +02:00
align.S [PATCH] xtensa: remove extra header files 2006-12-10 09:55:39 -08:00
asm-offsets.c xtensa: Shuffle include statements to fix linker script 2010-05-02 01:05:13 -07:00
coprocessor.S [XTENSA] Add support for configurable registers and coprocessors 2008-02-13 17:41:43 -08:00
entry.S xtensa: add handling of TIF_NOTIFY_RESUME 2012-05-21 23:59:48 -04:00
head.S xtensa: Fixes due to bss boundary symbol name changes. 2010-05-01 23:05:29 -07:00
io.c [XTENSA] Move string-io functions to io.c from pci.c 2007-08-27 13:53:22 -07:00
irq.c xtensa: Fixup irq conversion fallout and nmi_count 2011-04-20 00:32:09 +02:00
module.c modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
pci-dma.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pci.c Merge branch 'pci/myron-pcibios_setup' into next 2012-07-05 15:31:05 -06:00
platform.c xtensa: remove platform rtc hooks 2009-04-02 23:45:07 -07:00
process.c xtensa: Add missing RCU idle APIs on idle loop 2012-09-23 07:44:51 -07:00
ptrace.c Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
setup.c Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
signal.c fixups for signal breakage 2012-06-04 17:47:34 -04:00
syscall.c ipc: add COMPAT_SHMLBA support 2012-07-30 17:25:20 -07:00
time.c clocksource: xtensa: Convert to clocksource_register_hz/khz 2011-11-21 19:01:04 -08:00
traps.c Disintegrate asm/system.h for Xtensa 2012-03-28 18:30:03 +01:00
vectors.S xtensa: includecheck fix: vectors.S 2010-05-25 08:06:56 -07:00
vmlinux.lds.S xtensa: replace xtensa-specific _f{data,text} by _s{data,text} 2012-06-20 14:39:35 -07:00
xtensa_ksyms.c remove unneeded #include <linux/ide.h>'s 2008-08-05 18:17:00 +02:00