aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2008-11-14 17:47:43 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-16 03:01:32 -0500
commitda7b3eab167091693ad215ad7692f7d0d24d1356 (patch)
treea879fc523166fdaf196fe128e11246996eda0480 /include/linux/tracepoint.h
parentde0baf9ad661ac630a45a50ea1717cc4f4b33ace (diff)
tracepoints: use rcu_*_sched_notrace
Make sure tracepoints can be called within ftrace callbacks. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r--include/linux/tracepoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 63064e9403f2..69648c54a326 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -40,14 +40,14 @@ struct tracepoint {
40 do { \ 40 do { \
41 void **it_func; \ 41 void **it_func; \
42 \ 42 \
43 rcu_read_lock_sched(); \ 43 rcu_read_lock_sched_notrace(); \
44 it_func = rcu_dereference((tp)->funcs); \ 44 it_func = rcu_dereference((tp)->funcs); \
45 if (it_func) { \ 45 if (it_func) { \
46 do { \ 46 do { \
47 ((void(*)(proto))(*it_func))(args); \ 47 ((void(*)(proto))(*it_func))(args); \
48 } while (*(++it_func)); \ 48 } while (*(++it_func)); \
49 } \ 49 } \
50 rcu_read_unlock_sched(); \ 50 rcu_read_unlock_sched_notrace(); \
51 } while (0) 51 } while (0)
52 52
53/* 53/*