OpenCloudOS-Kernel/arch/m32r/kernel
Frederic Weisbecker 48ae077cfc m32r: 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 m32r's idle loop.

Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
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:47 -07:00
..
.gitignore m32r: add kernel/.gitignore and ignore vmlinux.lds 2010-10-15 19:37:50 -07:00
Makefile m32r: Use generic init_task 2012-05-05 13:00:23 +02:00
align.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
asm-offsets.c kbuild: frv,m32r,sparc64 introduce fake asm-offsets.h file 2005-09-09 22:47:53 +02:00
entry.S make m32r handle multiple pending signals 2010-09-24 13:54:19 -07:00
head.S m32r: Move the spi_stack_top and spu_stack_top into .init.data section. 2009-09-23 00:29:40 +09:00
irq.c m32r: Use generic show_interrupts() 2011-03-24 20:35:57 +01:00
m32r_ksyms.c m32r: export delay loop symbols 2009-10-04 12:02:36 +09:00
module.c modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
process.c m32r: Add missing RCU idle APIs on idle loop 2012-09-23 07:44:47 -07:00
ptrace.c m32r: fix 'fix breakage from "m32r: use generic ptrace_resume code"' fallout 2012-07-17 16:21:30 -07:00
setup.c procfs: constify function pointer tables 2008-02-08 09:22:38 -08:00
signal.c m32r: fix pull clearing RESTORE_SIGMASK into block_sigmask() fallout 2012-07-17 16:21:30 -07:00
smp.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
smpboot.c smp: Add task_struct argument to __cpu_up() 2012-04-26 12:06:09 +02:00
sys_m32r.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
syscall_table.S All Arch: remove linkage for sys_nfsservctl system call 2011-08-26 15:09:58 -07:00
time.c m32r: Switch from do_timer() to xtime_update() 2011-01-31 14:55:45 +01:00
traps.c Disintegrate asm/system.h for M32R 2012-03-28 18:30:02 +01:00
vmlinux.lds.S Merge branch 'for-2.6.40' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu 2011-05-24 11:53:42 -07:00