aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 0b5590330bca..d32cc5e4b0cc 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -491,8 +491,12 @@ static inline void __ftrace_enabled_restore(int enabled)
491 extern void trace_preempt_on(unsigned long a0, unsigned long a1); 491 extern void trace_preempt_on(unsigned long a0, unsigned long a1);
492 extern void trace_preempt_off(unsigned long a0, unsigned long a1); 492 extern void trace_preempt_off(unsigned long a0, unsigned long a1);
493#else 493#else
494 static inline void trace_preempt_on(unsigned long a0, unsigned long a1) { } 494/*
495 static inline void trace_preempt_off(unsigned long a0, unsigned long a1) { } 495 * Use defines instead of static inlines because some arches will make code out
496 * of the CALLER_ADDR, when we really want these to be a real nop.
497 */
498# define trace_preempt_on(a0, a1) do { } while (0)
499# define trace_preempt_off(a0, a1) do { } while (0)
496#endif 500#endif
497 501
498#ifdef CONFIG_FTRACE_MCOUNT_RECORD 502#ifdef CONFIG_FTRACE_MCOUNT_RECORD