hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/kernel/rcu/tree.h
....@@ -413,7 +413,9 @@
413413 */
414414 extern struct rcu_state rcu_sched_state;
415415
416
+#ifndef CONFIG_PREEMPT_RT_FULL
416417 extern struct rcu_state rcu_bh_state;
418
+#endif
417419
418420 #ifdef CONFIG_PREEMPT_RCU
419421 extern struct rcu_state rcu_preempt_state;
....@@ -421,12 +423,10 @@
421423
422424 int rcu_dynticks_snap(struct rcu_dynticks *rdtp);
423425
424
-#ifdef CONFIG_RCU_BOOST
425426 DECLARE_PER_CPU(unsigned int, rcu_cpu_kthread_status);
426427 DECLARE_PER_CPU(int, rcu_cpu_kthread_cpu);
427428 DECLARE_PER_CPU(unsigned int, rcu_cpu_kthread_loops);
428429 DECLARE_PER_CPU(char, rcu_cpu_has_work);
429
-#endif /* #ifdef CONFIG_RCU_BOOST */
430430
431431 #ifndef RCU_TREE_NONCORE
432432
....@@ -449,8 +449,8 @@
449449 int ncheck);
450450 static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags);
451451 static void rcu_preempt_boost_start_gp(struct rcu_node *rnp);
452
-static void invoke_rcu_callbacks_kthread(void);
453452 static bool rcu_is_callbacks_kthread(void);
453
+static void rcu_cpu_kthread_setup(unsigned int cpu);
454454 #ifdef CONFIG_RCU_BOOST
455455 static int rcu_spawn_one_boost_kthread(struct rcu_state *rsp,
456456 struct rcu_node *rnp);