diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-09-20 23:11:25 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-20 23:11:25 -0400 |
commit | 8f2baee28093ea77c7cc8da45049fd94cc76998e (patch) | |
tree | 73c24f8c60b7b8d98f9dc36187504534b926da64 /arch/sh | |
parent | 887f1ae3bc1701604a7b5ef145e1021072675444 (diff) |
sh: Kill off duplicate page fault notifiers in slow path.
We already have hooks in place in the __do_page_fault() fast-path,
so kill them off in the slow path.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/mm/fault_32.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/sh/mm/fault_32.c b/arch/sh/mm/fault_32.c index ef01f45daa8a..08a08ea5d69f 100644 --- a/arch/sh/mm/fault_32.c +++ b/arch/sh/mm/fault_32.c | |||
@@ -53,13 +53,10 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, | |||
53 | int fault; | 53 | int fault; |
54 | siginfo_t info; | 54 | siginfo_t info; |
55 | 55 | ||
56 | if (notify_page_fault(regs, lookup_exception_vector())) | 56 | /* |
57 | return; | 57 | * We don't bother with any notifier callbacks here, as they are |
58 | 58 | * all handled through the __do_page_fault() fast-path. | |
59 | #ifdef CONFIG_SH_KGDB | 59 | */ |
60 | if (kgdb_nofault && kgdb_bus_err_hook) | ||
61 | kgdb_bus_err_hook(); | ||
62 | #endif | ||
63 | 60 | ||
64 | tsk = current; | 61 | tsk = current; |
65 | si_code = SEGV_MAPERR; | 62 | si_code = SEGV_MAPERR; |