diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-05-08 21:55:38 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-05-08 21:55:38 -0400 |
commit | b118ca572db5af832c6fc1af7b301105378d1a08 (patch) | |
tree | f312b3f0f863b56add106efdf091d1f51447a0d0 /include | |
parent | 21ec4c6453790cb9bfa996ab8f27f22dd47c516a (diff) |
sh: Convert to common die chain.
This went in immediately after SH added the die chain notifiers,
so move over to that instead..
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sh/kdebug.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/include/asm-sh/kdebug.h b/include/asm-sh/kdebug.h index 493c20629747..16578b7c9da1 100644 --- a/include/asm-sh/kdebug.h +++ b/include/asm-sh/kdebug.h | |||
@@ -2,20 +2,6 @@ | |||
2 | #define __ASM_SH_KDEBUG_H | 2 | #define __ASM_SH_KDEBUG_H |
3 | 3 | ||
4 | #include <linux/notifier.h> | 4 | #include <linux/notifier.h> |
5 | #include <asm-generic/kdebug.h> | ||
6 | |||
7 | struct pt_regs; | ||
8 | |||
9 | struct die_args { | ||
10 | struct pt_regs *regs; | ||
11 | int trapnr; | ||
12 | }; | ||
13 | |||
14 | int register_die_notifier(struct notifier_block *nb); | ||
15 | int unregister_die_notifier(struct notifier_block *nb); | ||
16 | int register_page_fault_notifier(struct notifier_block *nb); | ||
17 | int unregister_page_fault_notifier(struct notifier_block *nb); | ||
18 | extern struct atomic_notifier_head shdie_chain; | ||
19 | 5 | ||
20 | /* Grossly misnamed. */ | 6 | /* Grossly misnamed. */ |
21 | enum die_val { | 7 | enum die_val { |
@@ -23,14 +9,7 @@ enum die_val { | |||
23 | DIE_PAGE_FAULT, | 9 | DIE_PAGE_FAULT, |
24 | }; | 10 | }; |
25 | 11 | ||
26 | static inline int notify_die(enum die_val val, struct pt_regs *regs, | 12 | int register_page_fault_notifier(struct notifier_block *nb); |
27 | int trap, int sig) | 13 | int unregister_page_fault_notifier(struct notifier_block *nb); |
28 | { | ||
29 | struct die_args args = { | ||
30 | .regs = regs, | ||
31 | .trapnr = trap, | ||
32 | }; | ||
33 | 14 | ||
34 | return atomic_notifier_call_chain(&shdie_chain, val, &args); | ||
35 | } | ||
36 | #endif /* __ASM_SH_KDEBUG_H */ | 15 | #endif /* __ASM_SH_KDEBUG_H */ |