aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rcutiny.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-03-27 13:32:00 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-06-10 16:45:52 -0400
commitfa2b3b0a50949537ac95a521b3546e9a87dc0565 (patch)
tree017c89b8f20520509b48a8532696c6e7e469b2f5 /include/linux/rcutiny.h
parent57f1801a11d5a5313990ac56f5072e6be36994c3 (diff)
rcu: Remove rcu_preempt_note_context_switch()
With the removal of CONFIG_TINY_PREEMPT_RCU, rcu_preempt_note_context_switch() is now an empty function. This commit therefore eliminates it by inlining it. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'include/linux/rcutiny.h')
-rw-r--r--include/linux/rcutiny.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h
index 07b5affb92fa..51230b63be93 100644
--- a/include/linux/rcutiny.h
+++ b/include/linux/rcutiny.h
@@ -68,10 +68,6 @@ static inline void kfree_call_rcu(struct rcu_head *head,
68 call_rcu(head, func); 68 call_rcu(head, func);
69} 69}
70 70
71static inline void rcu_preempt_note_context_switch(void)
72{
73}
74
75static inline int rcu_needs_cpu(int cpu, unsigned long *delta_jiffies) 71static inline int rcu_needs_cpu(int cpu, unsigned long *delta_jiffies)
76{ 72{
77 *delta_jiffies = ULONG_MAX; 73 *delta_jiffies = ULONG_MAX;
@@ -81,7 +77,6 @@ static inline int rcu_needs_cpu(int cpu, unsigned long *delta_jiffies)
81static inline void rcu_note_context_switch(int cpu) 77static inline void rcu_note_context_switch(int cpu)
82{ 78{
83 rcu_sched_qs(cpu); 79 rcu_sched_qs(cpu);
84 rcu_preempt_note_context_switch();
85} 80}
86 81
87/* 82/*