From: Paul E. McKenney Date: Fri, 21 Nov 2014 23:45:27 +0000 (-0800) Subject: rcu: Provide rcu_batches_completed_sched() for TINY_RCU X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1fe9cde4ae904fffb5b4d975d0a37e99136ff50;p=linux-beck.git rcu: Provide rcu_batches_completed_sched() for TINY_RCU A bug in rcutorture has caused it to ignore completed batches. In preparation for fixing that bug, this commit provides TINY_RCU with the required rcu_batches_completed_sched(). Signed-off-by: Paul E. McKenney --- diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index 91f7e4c37800..1ce2d6b8f0c3 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h @@ -107,6 +107,14 @@ static inline unsigned long rcu_batches_completed_bh(void) return 0; } +/* + * Return the number of sched grace periods. + */ +static inline unsigned long rcu_batches_completed_sched(void) +{ + return 0; +} + static inline void rcu_force_quiescent_state(void) { }