sh: Save NUMA node data in vmcore for crash dumps.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 4 Aug 2008 04:42:49 +0000 (13:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 4 Aug 2008 04:42:49 +0000 (13:42 +0900)
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>
arch/sh/kernel/machine_kexec.c

index ec1eadce4aaaebdf8d7ed8da1b44f42653b1aa9c..4703dff174d59bb7084c832f92a1c364d6ff77df 100644 (file)
@@ -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
+}