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 *);
27 * These are only here because kprobes.c wants them to implement a
28 * blatant layering violation. Will hopefully go away soon once all
29 * architectures are updated.
31 static inline int register_page_fault_notifier(struct notifier_block *nb)
35 static inline int unregister_page_fault_notifier(struct notifier_block *nb)
40 extern struct atomic_notifier_head s390die_chain;
57 static inline int notify_die(enum die_val val, const char *str,
58 struct pt_regs *regs, long err, int trap, int sig)
60 struct die_args args = {
67 return atomic_notifier_call_chain(&s390die_chain, val, &args);
70 extern void die(const char *, struct pt_regs *, long);