rcu: Assume rcu_init() is called before smp
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 16 Feb 2022 15:42:06 +0000 (16:42 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 17:56:47 +0000 (09:56 -0800)
commitd74608943fb48c22785b9e43dd9f6e4b5fe457c2
tree12b273e8fac1867c250e33249110ffc8f5986394
parent2bb32b303a74d824b6c491aa16d7fa0df178659a
rcu: Assume rcu_init() is called before smp

The rcu_init() function is called way before SMP is initialized and
therefore only the boot CPU should be online at this stage.

Simplify the boot per-cpu initialization accordingly.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Cc: Uladzislau Rezki <uladzislau.rezki@sony.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c