From: Andi Kleen <ak@muc.de>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Don't trigger NMI watchdog for panic delay
Date: Sun, 3 Aug 2003 11:38:57 +0200 [thread overview]
Message-ID: <20030803093857.GA11181@averell> (raw)
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
reply other threads:[~2003-08-03 9:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030803093857.GA11181@averell \
--to=ak@muc.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).