x86, nmi: Use predefined numbers instead of hardcoded one
authorCyrill Gorcunov <gorcunov@openvz.org>
Sun, 7 Jun 2009 08:19:37 +0000 (12:19 +0400)
committerIngo Molnar <mingo@elte.hu>
Sun, 7 Jun 2009 14:22:02 +0000 (16:22 +0200)
[ Impact: cleanup ]

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090607081937.GC4547@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/nmi.h

index c45a0a568dff092227b1436a48e7dab5434dc4fa..c97264409934be915d24d35395c1c0af5956aa7b 100644 (file)
@@ -64,7 +64,7 @@ static inline int nmi_watchdog_active(void)
         * but since they are power of two we could use a
         * cheaper way --cvg
         */
-       return nmi_watchdog & 0x3;
+       return nmi_watchdog & (NMI_LOCAL_APIC | NMI_IO_APIC);
 }
 #endif