aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-03-30 18:46:01 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-05-10 14:08:32 -0400
commitda848c47bc6e873a54a445ea1960423a495b6b32 (patch)
tree4c0eaef1a5990585730f00caca0cfcba21fe9f9f /kernel/rcutiny.c
parent32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88 (diff)
rcu: shrink rcutiny by making synchronize_rcu_bh() be inline
Because synchronize_rcu_bh() is identical to synchronize_sched(), make the former a static inline invoking the latter, saving the overhead of an EXPORT_SYMBOL_GPL() and the duplicate code. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutiny.c')
-rw-r--r--kernel/rcutiny.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c
index 9f6d9ff2572c..272c6d21a75f 100644
--- a/kernel/rcutiny.c
+++ b/kernel/rcutiny.c
@@ -187,7 +187,8 @@ static void rcu_process_callbacks(struct softirq_action *unused)
187 * 187 *
188 * Cool, huh? (Due to Josh Triplett.) 188 * Cool, huh? (Due to Josh Triplett.)
189 * 189 *
190 * But we want to make this a static inline later. 190 * But we want to make this a static inline later. The cond_resched()
191 * currently makes this problematic.
191 */ 192 */
192void synchronize_sched(void) 193void synchronize_sched(void)
193{ 194{
@@ -195,12 +196,6 @@ void synchronize_sched(void)
195} 196}
196EXPORT_SYMBOL_GPL(synchronize_sched); 197EXPORT_SYMBOL_GPL(synchronize_sched);
197 198
198void synchronize_rcu_bh(void)
199{
200 synchronize_sched();
201}
202EXPORT_SYMBOL_GPL(synchronize_rcu_bh);
203
204/* 199/*
205 * Helper function for call_rcu() and call_rcu_bh(). 200 * Helper function for call_rcu() and call_rcu_bh().
206 */ 201 */