]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Initialize boost kthread only for boot node prior SMP initialization
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 16 Feb 2022 15:42:07 +0000 (16:42 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 12 Apr 2022 00:05:58 +0000 (17:05 -0700)
commit82910a9c58dbd9ec164267a5c6768c217aad4664
treef185cee952395496318080742fd9d2c62c9c9ff7
parent58057be4d36a1dc819c823f134660bb34481122a
rcu: Initialize boost kthread only for boot node 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 boost kthread for the
leaf node of 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_plugin.h