]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Convert from rcu_preempt_state to *rcu_state_p
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 3 Mar 2015 20:56:43 +0000 (12:56 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:57:59 +0000 (12:57 -0700)
commite63c887cfed2077b2db29f27024d0a9f88151c40
treed5498ee4107c642216897c9ce841ddae35df5e88
parent7d0ae8086b828311250c6afdf800b568ac9bd693
rcu: Convert from rcu_preempt_state to *rcu_state_p

It would be good to move more code from #ifdef to IS_ENABLED(), but
that does not work if the body of the IS_ENABLED() "if" statement
references a variable (such as rcu_preempt_state) that does not
exist if the IS_ENABLED() Kconfig variable is not set.  This commit
therefore substitutes *rcu_state_p for all uses of rcu_preempt_state
in kernel/rcu/tree_preempt.h, which should enable elimination of
a few #ifdefs.

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