提交 a4046f8d 编写于 作者: C Cyrill Gorcunov 提交者: Ingo Molnar

x86, nmi: Use predefined numbers instead of hardcoded one

[ Impact: cleanup ]
Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090607081937.GC4547@lenovo>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 4aee2ad4
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册