aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/kdebug.h')
-rw-r--r--include/asm-powerpc/kdebug.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/asm-powerpc/kdebug.h b/include/asm-powerpc/kdebug.h
index 532bfee934f4..1c73d2ec9b59 100644
--- a/include/asm-powerpc/kdebug.h
+++ b/include/asm-powerpc/kdebug.h
@@ -6,18 +6,6 @@
6 6
7#include <linux/notifier.h> 7#include <linux/notifier.h>
8 8
9struct pt_regs;
10
11struct die_args {
12 struct pt_regs *regs;
13 const char *str;
14 long err;
15 int trapnr;
16 int signr;
17};
18
19extern int register_die_notifier(struct notifier_block *);
20extern int unregister_die_notifier(struct notifier_block *);
21extern int register_page_fault_notifier(struct notifier_block *); 9extern int register_page_fault_notifier(struct notifier_block *);
22extern int unregister_page_fault_notifier(struct notifier_block *); 10extern int unregister_page_fault_notifier(struct notifier_block *);
23extern struct atomic_notifier_head powerpc_die_chain; 11extern struct atomic_notifier_head powerpc_die_chain;
@@ -32,11 +20,5 @@ enum die_val {
32 DIE_PAGE_FAULT, 20 DIE_PAGE_FAULT,
33}; 21};
34 22
35static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
36{
37 struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
38 return atomic_notifier_call_chain(&powerpc_die_chain, val, &args);
39}
40
41#endif /* __KERNEL__ */ 23#endif /* __KERNEL__ */
42#endif /* _ASM_POWERPC_KDEBUG_H */ 24#endif /* _ASM_POWERPC_KDEBUG_H */