diff options
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r-- | kernel/rcu/update.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 5f850823c187..7b12466f90bc 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c | |||
@@ -64,7 +64,8 @@ module_param(rcu_expedited, int, 0); | |||
64 | 64 | ||
65 | #ifndef CONFIG_TINY_RCU | 65 | #ifndef CONFIG_TINY_RCU |
66 | 66 | ||
67 | static atomic_t rcu_expedited_nesting; | 67 | static atomic_t rcu_expedited_nesting = |
68 | ATOMIC_INIT(IS_ENABLED(CONFIG_RCU_EXPEDITE_BOOT) ? 1 : 0); | ||
68 | 69 | ||
69 | /* | 70 | /* |
70 | * Should normal grace-period primitives be expedited? Intended for | 71 | * Should normal grace-period primitives be expedited? Intended for |
@@ -109,6 +110,14 @@ EXPORT_SYMBOL_GPL(rcu_unexpedite_gp); | |||
109 | 110 | ||
110 | #endif /* #ifndef CONFIG_TINY_RCU */ | 111 | #endif /* #ifndef CONFIG_TINY_RCU */ |
111 | 112 | ||
113 | /* | ||
114 | * Inform RCU of the end of the in-kernel boot sequence. | ||
115 | */ | ||
116 | void rcu_end_inkernel_boot(void) | ||
117 | { | ||
118 | if (IS_ENABLED(CONFIG_RCU_EXPEDITE_BOOT)) | ||
119 | rcu_unexpedite_gp(); | ||
120 | } | ||
112 | 121 | ||
113 | #ifdef CONFIG_PREEMPT_RCU | 122 | #ifdef CONFIG_PREEMPT_RCU |
114 | 123 | ||