diff options
Diffstat (limited to 'kernel/rcu/srcutiny.c')
-rw-r--r-- | kernel/rcu/srcutiny.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/rcu/srcutiny.c b/kernel/rcu/srcutiny.c index 1a1c1047d2ed..76ac5f50b2c7 100644 --- a/kernel/rcu/srcutiny.c +++ b/kernel/rcu/srcutiny.c | |||
@@ -33,6 +33,8 @@ | |||
33 | #include "rcu_segcblist.h" | 33 | #include "rcu_segcblist.h" |
34 | #include "rcu.h" | 34 | #include "rcu.h" |
35 | 35 | ||
36 | int rcu_scheduler_active __read_mostly; | ||
37 | |||
36 | static int init_srcu_struct_fields(struct srcu_struct *sp) | 38 | static int init_srcu_struct_fields(struct srcu_struct *sp) |
37 | { | 39 | { |
38 | sp->srcu_lock_nesting[0] = 0; | 40 | sp->srcu_lock_nesting[0] = 0; |
@@ -193,3 +195,9 @@ void synchronize_srcu(struct srcu_struct *sp) | |||
193 | destroy_rcu_head_on_stack(&rs.head); | 195 | destroy_rcu_head_on_stack(&rs.head); |
194 | } | 196 | } |
195 | EXPORT_SYMBOL_GPL(synchronize_srcu); | 197 | EXPORT_SYMBOL_GPL(synchronize_srcu); |
198 | |||
199 | /* Lockdep diagnostics. */ | ||
200 | void __init rcu_scheduler_starting(void) | ||
201 | { | ||
202 | rcu_scheduler_active = RCU_SCHEDULER_RUNNING; | ||
203 | } | ||