From: Maciej W. Rozycki Date: Fri, 6 Jun 2008 02:27:41 +0000 (+0100) Subject: x86: NMI watchdog: Downgrade helper X-Git-Tag: v2.6.27-rc1~1106^2~251^2~10 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=148b50830993acc67129f09c544d9167291e5458;p=~emulex%2Finfiniband.git x86: NMI watchdog: Downgrade helper A downgrade helper for the NMI watchdog to be used in all places where the I/O APIC watchdog may have been requested, but the I/O APIC is found not to be there or meant to be left disabled. This is so that the reconfiguration is cosistent and defined in a single place only. Signed-off-by: Maciej W. Rozycki Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/nmi.h b/include/asm-x86/nmi.h index 1e363021e72..745d8c847de 100644 --- a/include/asm-x86/nmi.h +++ b/include/asm-x86/nmi.h @@ -78,6 +78,11 @@ extern int unknown_nmi_panic; void __trigger_all_cpu_backtrace(void); #define trigger_all_cpu_backtrace() __trigger_all_cpu_backtrace() +static inline void localise_nmi_watchdog(void) +{ + if (nmi_watchdog == NMI_IO_APIC) + nmi_watchdog = NMI_LOCAL_APIC; +} #endif void lapic_watchdog_stop(void);