rcu: Add callback-free CPUs
authorPaul E. McKenney <paul.mckenney@linaro.org>
Mon, 20 Aug 2012 04:35:53 +0000 (21:35 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 16 Nov 2012 18:05:56 +0000 (10:05 -0800)
commit3fbfbf7a3b66ec424042d909f14ba2ddf4372ea8
treecc364c320a6e23927ecc154a8ef8021dc7d1a9e8
parentaac1cda34b84a9411d6b8d18c3658f094c834911
rcu: Add callback-free CPUs

RCU callback execution can add significant OS jitter and also can
degrade both scheduling latency and, in asymmetric multiprocessors,
energy efficiency.  This commit therefore adds the ability for selected
CPUs ("rcu_nocbs=" boot parameter) to have their callbacks offloaded
to kthreads.  If the "rcu_nocb_poll" boot parameter is also specified,
these kthreads will do polling, removing the need for the offloaded
CPUs to do wakeups.  At least one CPU must be doing normal callback
processing: currently CPU 0 cannot be selected as a no-CBs CPU.
In addition, attempts to offline the last normal-CBs CPU will fail.

This feature was inspired by Jim Houston's and Joe Korty's JRCU, and
this commit includes fixes to problems located by Fengguang Wu's
kbuild test robot.

[ paulmck: Added gfp.h include file as suggested by Fengguang Wu. ]

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/kernel-parameters.txt
include/trace/events/rcu.h
init/Kconfig
kernel/rcutree.c
kernel/rcutree.h
kernel/rcutree_plugin.h
kernel/rcutree_trace.c