lkml.org 
[lkml]   [2009]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -tip] nmi: use predefined numbers instead of hardcoded one
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
I should have it done long time ago but anyway.

arch/x86/include/asm/nmi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.git/arch/x86/include/asm/nmi.h
=====================================================================
--- linux-2.6.git.orig/arch/x86/include/asm/nmi.h
+++ linux-2.6.git/arch/x86/include/asm/nmi.h
@@ -64,7 +64,7 @@ static inline int nmi_watchdog_active(vo
* 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


\
 
 \ /
  Last update: 2009-06-07 10:23    [W:0.029 / U:2.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site