Skip to contentSkip to conversation

Don't trigger NMI watchdog for panic delay

PATCH New Andi Kleen 1 participant 1 message Aug 3, 2003

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Don't trigger NMI watchdog for panic delay

In some cases panic can be called with interrupts off. Don't trigger the NMI watchdog in this case when a panic= parameter is specified.

-Andi

kernel/panic.c renamed from kernel/panic.c-o +5 -1
@@ -71,12 +71,16 @@
 
 	if (panic_timeout > 0)
 	{
+		int i;
 		/*
 	 	 * Delay timeout seconds before rebooting the machine. 
 		 * We can't use the "normal" timers since we just panicked..
 	 	 */
 		printk(KERN_EMERG "Rebooting in %d seconds..",panic_timeout);
-		mdelay(panic_timeout*1000);
+		for (i = 0; i < panic_timeout; i++) { 
+			touch_nmi_watchdog();
+			mdelay(1000);
+		} 
 		/*
 		 *	Should we run the reboot notifier. For the moment Im
 		 *	choosing not too. It might crash, be corrupt or do