Skip to content

Commit

Permalink
x86, nmi: Use predefined numbers instead of hardcoded one
Browse files Browse the repository at this point in the history
[ Impact: cleanup ]

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090607081937.GC4547@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jun 7, 2009
1 parent 4aee2ad commit a4046f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/nmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4046f8

Please sign in to comment.