* [PATCH] Don't trigger NMI watchdog for panic delay
@ 2003-08-03 9:38 Andi Kleen
0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2003-08-03 9:38 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
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
--- linux-2.6.0test2-amd64/kernel/panic.c-o 2003-05-27 03:00:58.000000000 +0200
+++ linux-2.6.0test2-amd64/kernel/panic.c 2003-07-29 19:36:12.000000000 +0200
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-03 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-03 9:38 [PATCH] Don't trigger NMI watchdog for panic delay Andi Kleen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.