aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/machine_kexec.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@iki.fi>2010-05-10 04:23:37 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-09 10:00:52 -0400
commitc63836204b27faec5a22d4b53692690cb967aaac (patch)
treed9d9213b096d3a379fd2350427facbcaa5551010 /arch/arm/kernel/machine_kexec.c
parent24b776bfb6396fded148167643ffaf8eb3f782b1 (diff)
ARM: 6118/1: kdump: implement machine_crash_shutdown()
Implement function machine_crash_shutdown() which disables IRQs and saves machine state to ELF notes structure. Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/machine_kexec.c')
-rw-r--r--arch/arm/kernel/machine_kexec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c
index 598ca61e7bca..81e989858d42 100644
--- a/arch/arm/kernel/machine_kexec.c
+++ b/arch/arm/kernel/machine_kexec.c
@@ -43,6 +43,10 @@ void machine_shutdown(void)
43 43
44void machine_crash_shutdown(struct pt_regs *regs) 44void machine_crash_shutdown(struct pt_regs *regs)
45{ 45{
46 local_irq_disable();
47 crash_save_cpu(regs, smp_processor_id());
48
49 printk(KERN_INFO "Loading crashdump kernel...\n");
46} 50}
47 51
48void machine_kexec(struct kimage *image) 52void machine_kexec(struct kimage *image)