|
@@ -64,7 +64,8 @@ module_param(rcu_expedited, int, 0);
|
|
|
|
|
|
#ifndef CONFIG_TINY_RCU
|
|
|
|
|
|
-static atomic_t rcu_expedited_nesting;
|
|
|
+static atomic_t rcu_expedited_nesting =
|
|
|
+ ATOMIC_INIT(IS_ENABLED(CONFIG_RCU_EXPEDITE_BOOT) ? 1 : 0);
|
|
|
|
|
|
/*
|
|
|
* Should normal grace-period primitives be expedited? Intended for
|
|
@@ -109,6 +110,14 @@ EXPORT_SYMBOL_GPL(rcu_unexpedite_gp);
|
|
|
|
|
|
#endif /* #ifndef CONFIG_TINY_RCU */
|
|
|
|
|
|
+/*
|
|
|
+ * Inform RCU of the end of the in-kernel boot sequence.
|
|
|
+ */
|
|
|
+void rcu_end_inkernel_boot(void)
|
|
|
+{
|
|
|
+ if (IS_ENABLED(CONFIG_RCU_EXPEDITE_BOOT))
|
|
|
+ rcu_unexpedite_gp();
|
|
|
+}
|
|
|
|
|
|
#ifdef CONFIG_PREEMPT_RCU
|
|
|
|