diff options
Diffstat (limited to 'kernel/rcupdate.c')
| -rw-r--r-- | kernel/rcupdate.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c index 20e9710fc21c..c0e1cb95dd4f 100644 --- a/kernel/rcupdate.c +++ b/kernel/rcupdate.c | |||
| @@ -182,6 +182,15 @@ long rcu_batches_completed(void) | |||
| 182 | return rcu_ctrlblk.completed; | 182 | return rcu_ctrlblk.completed; |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | /* | ||
| 186 | * Return the number of RCU batches processed thus far. Useful | ||
| 187 | * for debug and statistics. | ||
| 188 | */ | ||
| 189 | long rcu_batches_completed_bh(void) | ||
| 190 | { | ||
| 191 | return rcu_bh_ctrlblk.completed; | ||
| 192 | } | ||
| 193 | |||
| 185 | static void rcu_barrier_callback(struct rcu_head *notused) | 194 | static void rcu_barrier_callback(struct rcu_head *notused) |
| 186 | { | 195 | { |
| 187 | if (atomic_dec_and_test(&rcu_barrier_cpu_count)) | 196 | if (atomic_dec_and_test(&rcu_barrier_cpu_count)) |
| @@ -619,6 +628,7 @@ module_param(qlowmark, int, 0); | |||
| 619 | module_param(rsinterval, int, 0); | 628 | module_param(rsinterval, int, 0); |
| 620 | #endif | 629 | #endif |
| 621 | EXPORT_SYMBOL_GPL(rcu_batches_completed); | 630 | EXPORT_SYMBOL_GPL(rcu_batches_completed); |
| 631 | EXPORT_SYMBOL_GPL(rcu_batches_completed_bh); | ||
| 622 | EXPORT_SYMBOL_GPL(call_rcu); | 632 | EXPORT_SYMBOL_GPL(call_rcu); |
| 623 | EXPORT_SYMBOL_GPL(call_rcu_bh); | 633 | EXPORT_SYMBOL_GPL(call_rcu_bh); |
| 624 | EXPORT_SYMBOL_GPL(synchronize_rcu); | 634 | EXPORT_SYMBOL_GPL(synchronize_rcu); |
