diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-21 18:45:27 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-10 22:07:59 -0500 |
commit | c1fe9cde4ae904fffb5b4d975d0a37e99136ff50 (patch) | |
tree | 0cc7799d9752755f87934da135035b9df1460555 /include/linux/rcutiny.h | |
parent | 6b80da42c02bc731ab38b6a37da5366abe26717f (diff) |
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 <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcutiny.h')
-rw-r--r-- | include/linux/rcutiny.h | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |
109 | 109 | ||
110 | /* | ||
111 | * Return the number of sched grace periods. | ||
112 | */ | ||
113 | static inline unsigned long rcu_batches_completed_sched(void) | ||
114 | { | ||
115 | return 0; | ||
116 | } | ||
117 | |||
110 | static inline void rcu_force_quiescent_state(void) | 118 | static inline void rcu_force_quiescent_state(void) |
111 | { | 119 | { |
112 | } | 120 | } |