OSDN Git Service

Merge branches 'x86/pat2' and 'x86/fpu'; commit 'v2.6.28' into x86/core
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / x86 / kernel / traps.c
index f37cee7..141907a 100644 (file)
@@ -481,11 +481,7 @@ do_nmi(struct pt_regs *regs, long error_code)
 {
        nmi_enter();
 
-#ifdef CONFIG_X86_32
-       { int cpu; cpu = smp_processor_id(); ++nmi_count(cpu); }
-#else
-       add_pda(__nmi_count, 1);
-#endif
+       inc_irq_stat(__nmi_count);
 
        if (!ignore_nmis)
                default_do_nmi(regs);