]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: apic unification - merge down enable_NMI_through_LVT0
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 24 Jul 2008 11:52:29 +0000 (13:52 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Jul 2008 11:52:29 +0000 (13:52 +0200)
No code change on binary level.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_32.c
arch/x86/kernel/apic_64.c

index 447dd8c5c0e94aead5f75189ec9f8082b1fd2fa2..01708f128eeee410283dd61e7528d9a6d9195a15 100644 (file)
@@ -172,11 +172,15 @@ u32 safe_apic_wait_icr_idle(void)
  */
 void __cpuinit enable_NMI_through_LVT0(void)
 {
-       unsigned int v = APIC_DM_NMI;
+       unsigned int v;
+
+       /* unmask and set to NMI */
+       v = APIC_DM_NMI;
 
-       /* Level triggered for 82489DX */
+       /* Level triggered for 82489DX (32bit mode) */
        if (!lapic_is_integrated())
                v |= APIC_LVT_LEVEL_TRIGGER;
+
        apic_write(APIC_LVT0, v);
 }
 
index 4fa2a8620c265cf31959d224041f11e4eed32e75..7615b4b9c3f3df5721e61bd9711915d1eedfb363 100644 (file)
@@ -150,6 +150,11 @@ void __cpuinit enable_NMI_through_LVT0(void)
 
        /* unmask and set to NMI */
        v = APIC_DM_NMI;
+
+       /* Level triggered for 82489DX (32bit mode) */
+       if (!lapic_is_integrated())
+               v |= APIC_LVT_LEVEL_TRIGGER;
+
        apic_write(APIC_LVT0, v);
 }