[PATCH] x86: kprobes: Remove remove bogus preempt_enable

From: Thomas Gleixner
Date: Sat Jul 23 2011 - 09:02:06 EST

The CONFIG_PREEMPT=n section of setup_singlestep() contains:


That's bogus in the CONFIG_PREEMPT=n section and it just never blew up
because preempt_enable_no_resched() is a NOP there. Remove it.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
arch/x86/kernel/kprobes.c | 1 -
1 file changed, 1 deletion(-)

Index: linux-2.6-tip/arch/x86/kernel/kprobes.c
--- linux-2.6-tip.orig/arch/x86/kernel/kprobes.c
+++ linux-2.6-tip/arch/x86/kernel/kprobes.c
@@ -475,7 +475,6 @@ static void __kprobes setup_singlestep(s
* stepping.
regs->ip = (unsigned long)p->ainsn.insn;
- preempt_enable_no_resched();
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/