diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2008-04-08 00:31:47 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-04-09 12:53:00 -0400 |
commit | b0247a55f4cdd7a270e938aa39f9edb5b005a88c (patch) | |
tree | 04fc27486ff75dcebbabecbebb4082883eceeee3 /arch/ia64/kernel/mca.c | |
parent | 7180c4c9e09888db0a188f729c96c6d7bd61fa83 (diff) |
[IA64] kdump: add kdump_on_fatal_mca
While it is convenient that we can invoke kdump by asserting INIT
via button on chassis etc., there are some situations that invoking
kdump on fatal MCA is not welcomed rather than rebooting fast without
dump.
This patch adds a new flag 'kdump_on_fatal_mca' that is independent
from 'kdump_on_init' currently available. Adding this flag enable
us to turning on/off of kdump depend on the event, INIT and/or fatal
MCA. Default for this flag is to take the dump.
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/mca.c')
-rw-r--r-- | arch/ia64/kernel/mca.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c index 6c18221dba36..338dbb8c2cfc 100644 --- a/arch/ia64/kernel/mca.c +++ b/arch/ia64/kernel/mca.c | |||
@@ -1266,16 +1266,12 @@ ia64_mca_handler(struct pt_regs *regs, struct switch_stack *sw, | |||
1266 | } else { | 1266 | } else { |
1267 | /* Dump buffered message to console */ | 1267 | /* Dump buffered message to console */ |
1268 | ia64_mlogbuf_finish(1); | 1268 | ia64_mlogbuf_finish(1); |
1269 | #ifdef CONFIG_KEXEC | ||
1270 | atomic_set(&kdump_in_progress, 1); | ||
1271 | monarch_cpu = -1; | ||
1272 | #endif | ||
1273 | } | 1269 | } |
1270 | |||
1274 | if (notify_die(DIE_MCA_MONARCH_LEAVE, "MCA", regs, (long)&nd, 0, recover) | 1271 | if (notify_die(DIE_MCA_MONARCH_LEAVE, "MCA", regs, (long)&nd, 0, recover) |
1275 | == NOTIFY_STOP) | 1272 | == NOTIFY_STOP) |
1276 | ia64_mca_spin(__func__); | 1273 | ia64_mca_spin(__func__); |
1277 | 1274 | ||
1278 | |||
1279 | if (atomic_dec_return(&mca_count) > 0) { | 1275 | if (atomic_dec_return(&mca_count) > 0) { |
1280 | int i; | 1276 | int i; |
1281 | 1277 | ||