]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Eliminate a few RCU_BOOST #ifdefs in favor of IS_ENABLED()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 3 Mar 2015 22:49:26 +0000 (14:49 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:57:59 +0000 (12:57 -0700)
commit727b705baf7d091a9bc5494d7f1d9699b6932531
treec89b9bb4fa1e684c43bcad4c79bb6b878c57976b
parente63c887cfed2077b2db29f27024d0a9f88151c40
rcu: Eliminate a few RCU_BOOST #ifdefs in favor of IS_ENABLED()

This commit removes a few RCU_BOOST #ifdefs, replacing them with
IS_ENABLED()-protected return statements.  This relies on the
optimizer to remove any resulting dead code.  There are several other
RCU_BOOST #ifdefs, however these rely on some per-CPU variables that
are available only under RCU_BOOST.  These might be converted later,
if the simplification proves to outweigh the increase in memory footprint.
One hoped-for advantage is more easily locating compiler errors in
obscure combinations of Kconfig parameters.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: <linux-rt-users@vger.kernel.org>
kernel/rcu/tree.h
kernel/rcu/tree_plugin.h