浏览代码

[MIPS] Remove board_watchpoint_handler

It is not used anywhere in tree.

Signed-off-by: David Daney <ddaney@avtrex.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
David Daney 17 年之前
父节点
当前提交
cb11dfa024
共有 2 个文件被更改,包括 0 次插入7 次删除
  1. 0 6
      arch/mips/kernel/traps.c
  2. 0 1
      include/asm-mips/traps.h

+ 0 - 6
arch/mips/kernel/traps.c

@@ -71,7 +71,6 @@ extern asmlinkage void handle_reserved(void);
 extern int fpu_emulator_cop1Handler(struct pt_regs *xcp,
 extern int fpu_emulator_cop1Handler(struct pt_regs *xcp,
 	struct mips_fpu_struct *ctx, int has_fpu);
 	struct mips_fpu_struct *ctx, int has_fpu);
 
 
-void (*board_watchpoint_handler)(struct pt_regs *regs);
 void (*board_be_init)(void);
 void (*board_be_init)(void);
 int (*board_be_handler)(struct pt_regs *regs, int is_fixup);
 int (*board_be_handler)(struct pt_regs *regs, int is_fixup);
 void (*board_nmi_handler_setup)(void);
 void (*board_nmi_handler_setup)(void);
@@ -892,11 +891,6 @@ asmlinkage void do_mdmx(struct pt_regs *regs)
 
 
 asmlinkage void do_watch(struct pt_regs *regs)
 asmlinkage void do_watch(struct pt_regs *regs)
 {
 {
-	if (board_watchpoint_handler) {
-		(*board_watchpoint_handler)(regs);
-		return;
-	}
-
 	/*
 	/*
 	 * We use the watch exception where available to detect stack
 	 * We use the watch exception where available to detect stack
 	 * overflows.
 	 * overflows.

+ 0 - 1
include/asm-mips/traps.h

@@ -24,6 +24,5 @@ extern int (*board_be_handler)(struct pt_regs *regs, int is_fixup);
 extern void (*board_nmi_handler_setup)(void);
 extern void (*board_nmi_handler_setup)(void);
 extern void (*board_ejtag_handler_setup)(void);
 extern void (*board_ejtag_handler_setup)(void);
 extern void (*board_bind_eic_interrupt)(int irq, int regset);
 extern void (*board_bind_eic_interrupt)(int irq, int regset);
-extern void (*board_watchpoint_handler)(struct pt_regs *regs);
 
 
 #endif /* _ASM_TRAPS_H */
 #endif /* _ASM_TRAPS_H */