diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-12-17 21:25:59 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-06 14:02:54 -0500 |
commit | ab954c167ed9ac107a8beb1d6e1745ae698a3421 (patch) | |
tree | c4bd8ceba2369b72d3c1b1ef3b7fa81dcf5cfc3f /kernel/rcu | |
parent | 6cd534ef8bfe422a5a847b953d1039841509c374 (diff) |
rcu: Remove redundant callback-list initialization
The RCU callback lists are initialized in both rcu_boot_init_percpu_data()
and rcu_init_percpu_data(). The former is intended for initializing
immutable data, so this commit removes the initialization from
rcu_boot_init_percpu_data() and leaves it in rcu_init_percpu_data().
This change prepares for permitting callbacks to be queued very early
in boot.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 4ed2c2842103..febd0f72a3c9 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -3419,9 +3419,6 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp) | |||
3419 | /* Set up local state, ensuring consistent view of global state. */ | 3419 | /* Set up local state, ensuring consistent view of global state. */ |
3420 | raw_spin_lock_irqsave(&rnp->lock, flags); | 3420 | raw_spin_lock_irqsave(&rnp->lock, flags); |
3421 | rdp->grpmask = 1UL << (cpu - rdp->mynode->grplo); | 3421 | rdp->grpmask = 1UL << (cpu - rdp->mynode->grplo); |
3422 | init_callback_list(rdp); | ||
3423 | rdp->qlen_lazy = 0; | ||
3424 | ACCESS_ONCE(rdp->qlen) = 0; | ||
3425 | rdp->dynticks = &per_cpu(rcu_dynticks, cpu); | 3422 | rdp->dynticks = &per_cpu(rcu_dynticks, cpu); |
3426 | WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != DYNTICK_TASK_EXIT_IDLE); | 3423 | WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != DYNTICK_TASK_EXIT_IDLE); |
3427 | WARN_ON_ONCE(atomic_read(&rdp->dynticks->dynticks) != 1); | 3424 | WARN_ON_ONCE(atomic_read(&rdp->dynticks->dynticks) != 1); |