diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-08-04 13:42:49 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-08-04 13:42:49 +0900 |
commit | c3b4adfa65bae300a143188491e285556ca80fff (patch) | |
tree | 47895ba44dc31ad29bc3ebf2b9bfbd88a61c4ce4 /arch/sh | |
parent | 4b59c97325371d51275bdb50523fa98a301615b0 (diff) | |
download | linux-c3b4adfa65bae300a143188491e285556ca80fff.tar.gz linux-c3b4adfa65bae300a143188491e285556ca80fff.tar.bz2 linux-c3b4adfa65bae300a143188491e285556ca80fff.zip |
sh: Save NUMA node data in vmcore for crash dumps.
Presently the NUMA node data isn't saved on kexec. This implements a
simple arch_crash_save_vmcoreinfo() for saving off the relevant data.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/machine_kexec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c index ec1eadce4aaa..4703dff174d5 100644 --- a/arch/sh/kernel/machine_kexec.c +++ b/arch/sh/kernel/machine_kexec.c @@ -13,6 +13,7 @@ #include <linux/kexec.h> #include <linux/delay.h> #include <linux/reboot.h> +#include <linux/numa.h> #include <asm/pgtable.h> #include <asm/pgalloc.h> #include <asm/mmu_context.h> @@ -104,3 +105,10 @@ void machine_kexec(struct kimage *image) (*rnk)(page_list, reboot_code_buffer, image->start, vbr_reg); } +void arch_crash_save_vmcoreinfo(void) +{ +#ifdef CONFIG_NUMA + VMCOREINFO_SYMBOL(node_data); + VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); +#endif +} |