diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-03-15 16:11:11 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-18 14:38:21 -0400 |
commit | e95d68d2127716c7d6fb144bb19ef48ce9f37393 (patch) | |
tree | 40f1660a6c2829acc711e4702022f20ca59b83d1 | |
parent | efbe451d46af62369226e42b98dbcd95b6940a63 (diff) |
srcu: Make num_rcu_lvl[] array be external
This commit makes the num_rcu_lvl[] array external so that SRCU can
make use of it for initializing its upcoming srcu_node tree.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/rcu.h | 1 | ||||
-rw-r--r-- | kernel/rcu/tree.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h index 5c1798ec32f7..4303b880ac99 100644 --- a/kernel/rcu/rcu.h +++ b/kernel/rcu/rcu.h | |||
@@ -195,6 +195,7 @@ extern void resched_cpu(int cpu); | |||
195 | #include <linux/rcu_node_tree.h> | 195 | #include <linux/rcu_node_tree.h> |
196 | 196 | ||
197 | extern int rcu_num_lvls; | 197 | extern int rcu_num_lvls; |
198 | extern int num_rcu_lvl[]; | ||
198 | extern int rcu_num_nodes; | 199 | extern int rcu_num_nodes; |
199 | static bool rcu_fanout_exact; | 200 | static bool rcu_fanout_exact; |
200 | static int rcu_fanout_leaf; | 201 | static int rcu_fanout_leaf; |
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 9397a6693d70..346948b51b0b 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -123,7 +123,7 @@ static int rcu_fanout_leaf = RCU_FANOUT_LEAF; | |||
123 | module_param(rcu_fanout_leaf, int, 0444); | 123 | module_param(rcu_fanout_leaf, int, 0444); |
124 | int rcu_num_lvls __read_mostly = RCU_NUM_LVLS; | 124 | int rcu_num_lvls __read_mostly = RCU_NUM_LVLS; |
125 | /* Number of rcu_nodes at specified level. */ | 125 | /* Number of rcu_nodes at specified level. */ |
126 | static int num_rcu_lvl[] = NUM_RCU_LVL_INIT; | 126 | int num_rcu_lvl[] = NUM_RCU_LVL_INIT; |
127 | int rcu_num_nodes __read_mostly = NUM_RCU_NODES; /* Total # rcu_nodes in use. */ | 127 | int rcu_num_nodes __read_mostly = NUM_RCU_NODES; /* Total # rcu_nodes in use. */ |
128 | /* panic() on RCU Stall sysctl. */ | 128 | /* panic() on RCU Stall sysctl. */ |
129 | int sysctl_panic_on_rcu_stall __read_mostly; | 129 | int sysctl_panic_on_rcu_stall __read_mostly; |