rcu: combine duplicate code, courtesy of CONFIG_PREEMPT_RCU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 17 Aug 2010 21:18:46 +0000 (14:18 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 20 Aug 2010 16:00:16 +0000 (09:00 -0700)
commit7b0b759b65247cbc66384a912be9acf8d4800636
tree085a18f506193725ab16fa61cae41f93dcc7c3e9
parent73d4da4d360136826b36f78f5cf72b29da82c8a6
rcu: combine duplicate code, courtesy of CONFIG_PREEMPT_RCU

The CONFIG_PREEMPT_RCU kernel configuration parameter was recently
re-introduced, but as an indication of the type of RCU (preemptible
vs. non-preemptible) instead of as selecting a given implementation.
This commit uses CONFIG_PREEMPT_RCU to combine duplicate code
from include/linux/rcutiny.h and include/linux/rcutree.h into
include/linux/rcupdate.h.  This commit also combines a few other pieces
of duplicate code that have accumulated.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h
include/linux/rcutiny.h
include/linux/rcutree.h
kernel/rcutree_plugin.h