diff options
author | Nicolas Pitre <nico@cam.org> | 2008-08-19 04:15:23 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-01 12:06:26 +0100 |
commit | 3305a60795442a22fe8e9f5fb93a6f1f8dea6bb2 (patch) | |
tree | 048db0b22407325bdf2934a90ac4f2bbfd9b0e3b /arch/arm/kernel/kprobes.c | |
parent | ac9d7efc7da0d88f9e7a1e0f532da35b7673098e (diff) | |
download | op-kernel-dev-3305a60795442a22fe8e9f5fb93a6f1f8dea6bb2.zip op-kernel-dev-3305a60795442a22fe8e9f5fb93a6f1f8dea6bb2.tar.gz |
[ARM] 5206/1: remove kprobe_trap_handler() hack
As mentioned in commit 796969104cab0d454dbc792ad0d12a4f365a8564,
and because of commit b03a5b7559563dafdbe52f8b5d8e453a914db941,
the direct calling of kprobe_trap_handler() can be removed.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/kprobes.c')
-rw-r--r-- | arch/arm/kernel/kprobes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c index d28513f1..3f9abe0 100644 --- a/arch/arm/kernel/kprobes.c +++ b/arch/arm/kernel/kprobes.c @@ -200,9 +200,12 @@ void __kprobes kprobe_handler(struct pt_regs *regs) } } -int kprobe_trap_handler(struct pt_regs *regs, unsigned int instr) +static int __kprobes kprobe_trap_handler(struct pt_regs *regs, unsigned int instr) { + unsigned long flags; + local_irq_save(flags); kprobe_handler(regs); + local_irq_restore(flags); return 0; } |