--- linux-2.6.26.noarch/arch/x86/kernel/nmi.c~ 2008-07-14 20:31:14.000000000 -0400 +++ linux-2.6.26.noarch/arch/x86/kernel/nmi.c 2008-07-14 20:31:38.000000000 -0400 @@ -416,7 +416,7 @@ nmi_watchdog_tick(struct pt_regs *regs, * wait a few IRQs (5 seconds) before doing the oops ... */ local_inc(&__get_cpu_var(alert_counter)); - if (local_read(&__get_cpu_var(alert_counter)) == 5 * nmi_hz) + if (local_read(&__get_cpu_var(alert_counter)) == CONFIG_DEBUG_NMI_TIMEOUT * nmi_hz) /* * die_nmi will return ONLY if NOTIFY_STOP happens.. */ --- linux-2.6.21.noarch/lib/Kconfig.debug~ 2007-07-06 17:05:46.000000000 -0400 +++ linux-2.6.21.noarch/lib/Kconfig.debug 2007-07-06 17:06:07.000000000 -0400 @@ -126,6 +126,14 @@ config SCHEDSTATS application, you can say N to avoid the very slight overhead this adds. +config DEBUG_NMI_TIMEOUT + int "Number of seconds before NMI timeout" + depends on X86 + default 5 + help + This value is the number of seconds the NMI watchdog will tick + before it decides the machine has hung. + config TIMER_STATS bool "Collect kernel timers statistics" depends on DEBUG_KERNEL && PROC_FS