summaryrefslogtreecommitdiff
path: root/include/linux/ftrace_irq.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-11-06 15:55:21 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-06 22:20:46 +0100
commit6a60dd121c5b6c2d827e99b38c1326f2600c3891 (patch)
treed1be280b4a0dba24ca3ec800d6d1ef74c4df85be /include/linux/ftrace_irq.h
parent7e5e26a3d8ac4bcadb380073dc9604c07a9a6198 (diff)
downloadlwn-6a60dd121c5b6c2d827e99b38c1326f2600c3891.tar.gz
lwn-6a60dd121c5b6c2d827e99b38c1326f2600c3891.zip
ftrace: split out hardirq ftrace code into own header
Impact: moving of function prototypes into own header file ftrace.h is too big of a file for hardirq.h, and some archs will fail to build because of the include dependencies not being met. This patch pulls out the required prototypes for hardirq.h into a smaller and safer ftrace_irq.h file. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace_irq.h')
-rw-r--r--include/linux/ftrace_irq.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/ftrace_irq.h b/include/linux/ftrace_irq.h
new file mode 100644
index 000000000000..b1299d6729f2
--- /dev/null
+++ b/include/linux/ftrace_irq.h
@@ -0,0 +1,13 @@
+#ifndef _LINUX_FTRACE_IRQ_H
+#define _LINUX_FTRACE_IRQ_H
+
+
+#ifdef CONFIG_DYNAMIC_FTRACE
+extern void ftrace_nmi_enter(void);
+extern void ftrace_nmi_exit(void);
+#else
+static inline void ftrace_nmi_enter(void) { }
+static inline void ftrace_nmi_exit(void) { }
+#endif
+
+#endif /* _LINUX_FTRACE_IRQ_H */