Skip to content

Commit

Permalink
ARM: 6118/1: kdump: implement machine_crash_shutdown()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mika Westerberg authored and Russell King committed Jul 9, 2010
1 parent 24b776b commit c638362
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ void machine_shutdown(void)

void machine_crash_shutdown(struct pt_regs *regs)
{
local_irq_disable();
crash_save_cpu(regs, smp_processor_id());

printk(KERN_INFO "Loading crashdump kernel...\n");
}

void machine_kexec(struct kimage *image)
Expand Down

0 comments on commit c638362

Please sign in to comment.