rcu: Introduce for_each_rcu_flavor() and use it
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 12 Jun 2012 18:01:13 +0000 (11:01 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:33:24 +0000 (12:33 -0700)
The arrival of TREE_PREEMPT_RCU some years back included some ugly
code involving either #ifdef or #ifdef'ed wrapper functions to iterate
over all non-SRCU flavors of RCU.  This commit therefore introduces
a for_each_rcu_flavor() iterator over the rcu_state structures for each
flavor of RCU to clean up a bit of the ugliness.

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

Simple merge
Simple merge
Simple merge