diff options
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 37fbccdf41d5..f11ebd44b454 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -62,6 +62,15 @@ long rcu_batches_completed(void) | |||
62 | EXPORT_SYMBOL_GPL(rcu_batches_completed); | 62 | EXPORT_SYMBOL_GPL(rcu_batches_completed); |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * Force a quiescent state for preemptible RCU. | ||
66 | */ | ||
67 | void rcu_force_quiescent_state(void) | ||
68 | { | ||
69 | force_quiescent_state(&rcu_preempt_state, 0); | ||
70 | } | ||
71 | EXPORT_SYMBOL_GPL(rcu_force_quiescent_state); | ||
72 | |||
73 | /* | ||
65 | * Record a preemptable-RCU quiescent state for the specified CPU. Note | 74 | * Record a preemptable-RCU quiescent state for the specified CPU. Note |
66 | * that this just means that the task currently running on the CPU is | 75 | * that this just means that the task currently running on the CPU is |
67 | * not in a quiescent state. There might be any number of tasks blocked | 76 | * not in a quiescent state. There might be any number of tasks blocked |
@@ -713,6 +722,16 @@ long rcu_batches_completed(void) | |||
713 | EXPORT_SYMBOL_GPL(rcu_batches_completed); | 722 | EXPORT_SYMBOL_GPL(rcu_batches_completed); |
714 | 723 | ||
715 | /* | 724 | /* |
725 | * Force a quiescent state for RCU, which, because there is no preemptible | ||
726 | * RCU, becomes the same as rcu-sched. | ||
727 | */ | ||
728 | void rcu_force_quiescent_state(void) | ||
729 | { | ||
730 | rcu_sched_force_quiescent_state(); | ||
731 | } | ||
732 | EXPORT_SYMBOL_GPL(rcu_force_quiescent_state); | ||
733 | |||
734 | /* | ||
716 | * Because preemptable RCU does not exist, we never have to check for | 735 | * Because preemptable RCU does not exist, we never have to check for |
717 | * CPUs being in quiescent states. | 736 | * CPUs being in quiescent states. |
718 | */ | 737 | */ |