summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm64/include/asm/exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm64/include/asm/exception.h')
-rw-r--r--kernel/arch/arm64/include/asm/exception.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/arch/arm64/include/asm/exception.h b/kernel/arch/arm64/include/asm/exception.h
index 0303705fc..6cb7e1a6b 100644
--- a/kernel/arch/arm64/include/asm/exception.h
+++ b/kernel/arch/arm64/include/asm/exception.h
@@ -18,7 +18,13 @@
#ifndef __ASM_EXCEPTION_H
#define __ASM_EXCEPTION_H
+#include <linux/ftrace.h>
+
#define __exception __attribute__((section(".exception.text")))
+#ifdef CONFIG_FUNCTION_GRAPH_TRACER
+#define __exception_irq_entry __irq_entry
+#else
#define __exception_irq_entry __exception
+#endif
#endif /* __ASM_EXCEPTION_H */