diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 0a20445dcbcc..740c97dcf9cb 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -58,4 +58,12 @@ extern void mcount(void); | |||
58 | # define time_hardirqs_off(a0, a1) do { } while (0) | 58 | # define time_hardirqs_off(a0, a1) do { } while (0) |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | #ifdef CONFIG_PREEMPT_TRACER | ||
62 | extern void notrace trace_preempt_on(unsigned long a0, unsigned long a1); | ||
63 | extern void notrace trace_preempt_off(unsigned long a0, unsigned long a1); | ||
64 | #else | ||
65 | # define trace_preempt_on(a0, a1) do { } while (0) | ||
66 | # define trace_preempt_off(a0, a1) do { } while (0) | ||
67 | #endif | ||
68 | |||
61 | #endif /* _LINUX_FTRACE_H */ | 69 | #endif /* _LINUX_FTRACE_H */ |