hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
kernel/kernel/rcu/update.c
....@@ -68,8 +68,10 @@
6868 module_param(rcu_expedited, int, 0);
6969 extern int rcu_normal; /* from sysctl */
7070 module_param(rcu_normal, int, 0);
71
-static int rcu_normal_after_boot;
71
+static int rcu_normal_after_boot = IS_ENABLED(CONFIG_PREEMPT_RT_FULL);
72
+#ifndef CONFIG_PREEMPT_RT_FULL
7273 module_param(rcu_normal_after_boot, int, 0);
74
+#endif
7375 #endif /* #ifndef CONFIG_TINY_RCU */
7476
7577 #ifdef CONFIG_DEBUG_LOCK_ALLOC
....@@ -288,6 +290,7 @@
288290 }
289291 EXPORT_SYMBOL_GPL(rcu_read_lock_held);
290292
293
+#ifndef CONFIG_PREEMPT_RT_FULL
291294 /**
292295 * rcu_read_lock_bh_held() - might we be in RCU-bh read-side critical section?
293296 *
....@@ -314,6 +317,7 @@
314317 return in_softirq() || irqs_disabled();
315318 }
316319 EXPORT_SYMBOL_GPL(rcu_read_lock_bh_held);
320
+#endif
317321
318322 #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
319323