summaryrefslogtreecommitdiffstats
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-10-03 19:51:47 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-11-27 11:42:03 -0500
commit844ccdd7dce2c1a6ea9b437fcf8c3265b136e4a5 (patch)
tree849c27c829544f9cde57bd2fd311060d5206c1d6 /include/linux/tracepoint.h
parent51a1fd30f13090be7750fed86cf3728afaf4e394 (diff)
rcu: Eliminate rcu_irq_enter_disabled()
Now that the irq path uses the rcu_nmi_{enter,exit}() algorithm, rcu_irq_enter() and rcu_irq_exit() may be used from any context. There is thus no need for rcu_irq_enter_disabled() and for the checks using it. This commit therefore eliminates rcu_irq_enter_disabled(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r--include/linux/tracepoint.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index a26ffbe09e71..c94f466d57ef 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -137,11 +137,8 @@ extern void syscall_unregfunc(void);
137 \ 137 \
138 if (!(cond)) \ 138 if (!(cond)) \
139 return; \ 139 return; \
140 if (rcucheck) { \ 140 if (rcucheck) \
141 if (WARN_ON_ONCE(rcu_irq_enter_disabled())) \
142 return; \
143 rcu_irq_enter_irqson(); \ 141 rcu_irq_enter_irqson(); \
144 } \
145 rcu_read_lock_sched_notrace(); \ 142 rcu_read_lock_sched_notrace(); \
146 it_func_ptr = rcu_dereference_sched((tp)->funcs); \ 143 it_func_ptr = rcu_dereference_sched((tp)->funcs); \
147 if (it_func_ptr) { \ 144 if (it_func_ptr) { \