X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-x86%2Fnmi.h;h=21f8d0202a828ee8f6d1bf14b444e2b340f6cb3d;hb=b2bc27314664c4d1a2f02e6f4cd0c32e4681d61e;hp=1348e542360f54aed60d954cfdcb0d42f91d23b8;hpb=c376d45432d935e6f1e0ff2d6be3734bcd3ba455;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-x86/nmi.h b/include/asm-x86/nmi.h index 1348e542360..21f8d0202a8 100644 --- a/include/asm-x86/nmi.h +++ b/include/asm-x86/nmi.h @@ -56,6 +56,19 @@ static inline void localise_nmi_watchdog(void) if (nmi_watchdog == NMI_IO_APIC) nmi_watchdog = NMI_LOCAL_APIC; } + +/* check if nmi_watchdog is active (ie was specified at boot) */ +static inline int nmi_watchdog_active(void) +{ + /* + * actually it should be: + * return (nmi_watchdog == NMI_LOCAL_APIC || + * nmi_watchdog == NMI_IO_APIC) + * but since they are power of two we could use a + * cheaper way --cvg + */ + return nmi_watchdog & 0x3; +} #endif void lapic_watchdog_stop(void);