rcu/nocb: Initialize nocb kthreads only for boot CPU prior SMP initialization
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 16 Feb 2022 15:42:08 +0000 (16:42 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 17:56:47 +0000 (09:56 -0800)
commit786506950a6442bcc3120a8947dc308ed56ce48b
tree78d6bff45a7412607fce3ad4ccc7f923b837b61d
parentafa9f302fc2e9a6cefe3b55870678ac5542b6eef
rcu/nocb: Initialize nocb kthreads only for boot CPU prior SMP initialization

The rcu_spawn_gp_kthread() function is called as an early initcall, which
means that SMP initialization hasn't happened yet and only the boot CPU is
online. Therefore, create only the NOCB kthreads related to the boot CPU.

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
kernel/rcu/tree.h
kernel/rcu/tree_nocb.h