Skip to contentSkip to conversation

x86-32: Cleanup redundant NMI wrapping

PATCH New Jan Kiszka 1 participant 1 message Oct 19, 2008 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86-32: Cleanup redundant NMI wrapping

We are now doing the housekeeping in nmi_enter/exit, so this hunk can safely be reverted.

---
 arch/x86/kernel/traps_32.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
arch/x86/kernel/traps_32.c +1 -5
Index: b/arch/x86/kernel/traps_32.c
===================================================================
@@ -836,21 +836,17 @@ static int ignore_nmis;
 
 notrace __kprobes void do_nmi(struct pt_regs *regs, long error_code)
 {
-	int cpu, cs;
+	int cpu;
 
 	nmi_enter();
 
 	cpu = smp_processor_id();
 
-	cs = ipipe_disable_context_check(cpu);
- 
 	++nmi_count(cpu);
 
 	if (!ignore_nmis)
 		default_do_nmi(regs);
 
- 	ipipe_restore_context_check(cpu, cs);
- 
 	nmi_exit();
 }