diff options
author | Alexander van Heukelum <heukelum@fastmail.fm> | 2008-09-26 14:03:07 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-13 10:22:04 +0200 |
commit | 69c89b5bf7f253756f3056e84b8603abe1c50f5b (patch) | |
tree | 015a9adf6721d314f8c904e7ffa02052c895c7b8 /include/asm-x86 | |
parent | a491503e4d0cb739f409069826e2746e38826099 (diff) | |
download | op-kernel-dev-69c89b5bf7f253756f3056e84b8603abe1c50f5b.zip op-kernel-dev-69c89b5bf7f253756f3056e84b8603abe1c50f5b.tar.gz |
traps: x86: remove trace_hardirqs_fixup from pagefault handler
The last use of trace_hardirqs_fixup is unnecessary, because the
trap is taken with interrupt off on i386 as well as x86_64, and
the irq-tracer is notified of this from the assembly code.
trace_hardirqs_fixup and trace_hardirqs_fixup_flags are removed
from include/asm-x86/irqflags.h as they are no longer used.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/irqflags.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/asm-x86/irqflags.h b/include/asm-x86/irqflags.h index 424acb4..2bdab21 100644 --- a/include/asm-x86/irqflags.h +++ b/include/asm-x86/irqflags.h @@ -166,27 +166,6 @@ static inline int raw_irqs_disabled(void) return raw_irqs_disabled_flags(flags); } -/* - * makes the traced hardirq state match with the machine state - * - * should be a rarely used function, only in places where its - * otherwise impossible to know the irq state, like in traps. - */ -static inline void trace_hardirqs_fixup_flags(unsigned long flags) -{ - if (raw_irqs_disabled_flags(flags)) - trace_hardirqs_off(); - else - trace_hardirqs_on(); -} - -static inline void trace_hardirqs_fixup(void) -{ - unsigned long flags = __raw_local_save_flags(); - - trace_hardirqs_fixup_flags(flags); -} - #else #ifdef CONFIG_X86_64 |