aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/traps.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/traps.h')
-rw-r--r--arch/mips/include/asm/traps.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/include/asm/traps.h b/arch/mips/include/asm/traps.h
index 90ff2f497c5..4edab87eebd 100644
--- a/arch/mips/include/asm/traps.h
+++ b/arch/mips/include/asm/traps.h
@@ -25,4 +25,16 @@ extern void (*board_nmi_handler_setup)(void);
extern void (*board_ejtag_handler_setup)(void);
extern void (*board_bind_eic_interrupt)(int irq, int regset);
+extern int register_nmi_notifier(struct notifier_block *nb);
+
+#define nmi_notifier(fn, pri) \
+({ \
+ static struct notifier_block fn##_nb = { \
+ .notifier_call = fn, \
+ .priority = pri \
+ }; \
+ \
+ register_nmi_notifier(&fn##_nb); \
+})
+
#endif /* _ASM_TRAPS_H */