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>
Tue, 12 Apr 2022 00:05:58 +0000 (17:05 -0700)
commit2eed973adc6e749439730e53e6220b122398d319
tree5b4ec105e89f95eac714ff3e2dbb54eadb69204b
parent8d2aaa9b7c290e766a41f29c71ec72192851d538
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