5 * Feb 2006 Ported to s390 <grundym@us.ibm.com>
7 #include <linux/notifier.h>
19 /* Note - you should never unregister because that can race with NMIs.
20 * If you really want to do it first unregister - then synchronize_sched
23 extern int register_die_notifier(struct notifier_block *);
24 extern int unregister_die_notifier(struct notifier_block *);
25 extern int register_page_fault_notifier(struct notifier_block *);
26 extern int unregister_page_fault_notifier(struct notifier_block *);
27 extern struct atomic_notifier_head s390die_chain;
46 static inline int notify_die(enum die_val val, const char *str,
47 struct pt_regs *regs, long err, int trap, int sig)
49 struct die_args args = {
56 return atomic_notifier_call_chain(&s390die_chain, val, &args);