summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander van Heukelum <heukelum@fastmail.fm>2008-09-09 21:55:55 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-13 10:20:02 +0200
commit762db4347060c5d23e9675846e02f7d95d7f944f (patch)
tree39267b2c53f6525d8f9a95c1bdb6848205362095 /include
parent927604c7592473742891dc13e1da09febc06e01b (diff)
downloadop-kernel-dev-762db4347060c5d23e9675846e02f7d95d7f944f.zip
op-kernel-dev-762db4347060c5d23e9675846e02f7d95d7f944f.tar.gz
i386: remove kprobes' restore_interrupts in favour of conditional_sti
x86_64 uses a helper function conditional_sti in traps_64.c which is equal to restore_interrupts in kprobes.h. The only user of restore_interrupts is in traps_32.c. Introduce conditional_sti for i386 and remove restore_interrupts. Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/kprobes.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/asm-x86/kprobes.h b/include/asm-x86/kprobes.h
index bd840786..8a0748d 100644
--- a/include/asm-x86/kprobes.h
+++ b/include/asm-x86/kprobes.h
@@ -82,15 +82,6 @@ struct kprobe_ctlblk {
struct prev_kprobe prev_kprobe;
};
-/* trap3/1 are intr gates for kprobes. So, restore the status of IF,
- * if necessary, before executing the original int3/1 (trap) handler.
- */
-static inline void restore_interrupts(struct pt_regs *regs)
-{
- if (regs->flags & X86_EFLAGS_IF)
- local_irq_enable();
-}
-
extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
extern int kprobe_exceptions_notify(struct notifier_block *self,
unsigned long val, void *data);
OpenPOWER on IntegriCloud