aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/mca.c
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2008-04-08 13:31:47 +0900
committerTony Luck <tony.luck@intel.com>2008-04-09 09:53:00 -0700
commitb0247a55f4cdd7a270e938aa39f9edb5b005a88c (patch)
tree04fc27486ff75dcebbabecbebb4082883eceeee3 /arch/ia64/kernel/mca.c
parent7180c4c9e09888db0a188f729c96c6d7bd61fa83 (diff)
downloadkernel_samsung_smdk4412-b0247a55f4cdd7a270e938aa39f9edb5b005a88c.zip
kernel_samsung_smdk4412-b0247a55f4cdd7a270e938aa39f9edb5b005a88c.tar.gz
kernel_samsung_smdk4412-b0247a55f4cdd7a270e938aa39f9edb5b005a88c.tar.bz2
[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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
index 6c18221..338dbb8 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,
} else {
/* Dump buffered message to console */
ia64_mlogbuf_finish(1);
-#ifdef CONFIG_KEXEC
- atomic_set(&kdump_in_progress, 1);
- monarch_cpu = -1;
-#endif
}
+
if (notify_die(DIE_MCA_MONARCH_LEAVE, "MCA", regs, (long)&nd, 0, recover)
== NOTIFY_STOP)
ia64_mca_spin(__func__);
-
if (atomic_dec_return(&mca_count) > 0) {
int i;