Skip to content

Commit

Permalink
sh: Kill off duplicate page fault notifiers in slow path.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Sep 21, 2008
1 parent 887f1ae commit 8f2baee
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions arch/sh/mm/fault_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
int fault;
siginfo_t info;

if (notify_page_fault(regs, lookup_exception_vector()))
return;

#ifdef CONFIG_SH_KGDB
if (kgdb_nofault && kgdb_bus_err_hook)
kgdb_bus_err_hook();
#endif
/*
* We don't bother with any notifier callbacks here, as they are
* all handled through the __do_page_fault() fast-path.
*/

tsk = current;
si_code = SEGV_MAPERR;
Expand Down

0 comments on commit 8f2baee

Please sign in to comment.