|
@@ -459,6 +459,28 @@ unsigned long rcu_batches_completed_bh(void)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(rcu_batches_completed_bh);
|
|
|
|
|
|
+/*
|
|
|
+ * Return the number of RCU expedited batches completed thus far for
|
|
|
+ * debug & stats. Odd numbers mean that a batch is in progress, even
|
|
|
+ * numbers mean idle. The value returned will thus be roughly double
|
|
|
+ * the cumulative batches since boot.
|
|
|
+ */
|
|
|
+unsigned long rcu_exp_batches_completed(void)
|
|
|
+{
|
|
|
+ return rcu_state_p->expedited_sequence;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(rcu_exp_batches_completed);
|
|
|
+
|
|
|
+/*
|
|
|
+ * Return the number of RCU-sched expedited batches completed thus far
|
|
|
+ * for debug & stats. Similar to rcu_exp_batches_completed().
|
|
|
+ */
|
|
|
+unsigned long rcu_exp_batches_completed_sched(void)
|
|
|
+{
|
|
|
+ return rcu_sched_state.expedited_sequence;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(rcu_exp_batches_completed_sched);
|
|
|
+
|
|
|
/*
|
|
|
* Force a quiescent state.
|
|
|
*/
|