diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-08-21 03:45:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-08-21 03:45:19 -0400 |
commit | 94edf6f3c20c9c8ee301bde04150a91bab4bf32c (patch) | |
tree | 4a2af658258cf42fde24c1224e44c3e6a18c2792 /kernel/rcu/srcutiny.c | |
parent | d5da6457bfadf64ff78f1816ae8329dbbba19513 (diff) | |
parent | 656e7c0c0a2e8d899f87fd7f081ea7a711146604 (diff) |
Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/rcu
Pull RCU updates from Paul E. McKenney:
- Removal of spin_unlock_wait()
- SRCU updates
- Torture-test updates
- Documentation updates
- Miscellaneous fixes
- CPU-hotplug fixes
- Miscellaneous non-RCU fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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 | } | ||