summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-03-04 07:53:04 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-05-27 12:58:00 -0700
commit2927a689e8ad5c12d6300b41e873d2b7957bc0e1 (patch)
tree1356c096fce1bef08241085779ce5cf69a229f9e /kernel/rcu/tree.c
parentb28a7c016618e5e32e0703e3dd111dbba02715ff (diff)
downloadlwn-2927a689e8ad5c12d6300b41e873d2b7957bc0e1.tar.gz
lwn-2927a689e8ad5c12d6300b41e873d2b7957bc0e1.zip
rcu: Create an immutable rcu_data_p pointer to default rcu_data structure
This commit creates an immutable rcu_data_p pointer that references rcu_preempt_data for TREE_PREEMPT_RCU builds and that references rcu_sched_data for TREE_RCU builds. This rcu_data_p pointer will enable more code to move from #ifdef to IS_ENABLED(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index f031700514dd..213f644d6fb1 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -111,6 +111,7 @@ RCU_STATE_INITIALIZER(rcu_sched, 's', call_rcu_sched);
RCU_STATE_INITIALIZER(rcu_bh, 'b', call_rcu_bh);
static struct rcu_state *const rcu_state_p;
+static struct rcu_data __percpu *const rcu_data_p;
LIST_HEAD(rcu_struct_flavors);
/* Increase (but not decrease) the CONFIG_RCU_FANOUT_LEAF at boot time. */