]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/ppc-vmcoreinfo.diff
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / ppc-vmcoreinfo.diff
CommitLineData
4d1e5b62
AF
1Date: Thu, 9 Oct 2008 11:20:27 -0400
2From: Neil Horman <nhorman@tuxdriver.com>
3To: linux-kernel@vger.kernel.org, kexec@lists.infradead.org,
4 vgoyal@redhat.com, hbabu@us.ibm.com
5Subject: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for
6 ppc(64)
7Cc: nhorman@tuxdriver.com
8
9Hey-
10 The makdumpdile dump filtering program, in some modes of operation needs
11the node_data and/or contig_page_data symbols to function properly. These
12symbols are missing from the powerpc kernel. This patch adds those symbols in
13properly. Tested successfully by myself and the reporter.
14
15Regards
16Neil
17
18Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
19Acked-by: Bernhard Walle <bwalle@suse.de>
20
21 arch/powerpc/kernel/machine_kexec.c | 8 ++++++++
22 1 file changed, 8 insertions(+)
23
24
25--- a/arch/powerpc/kernel/machine_kexec.c
26+++ b/arch/powerpc/kernel/machine_kexec.c
27@@ -44,6 +44,14 @@ void machine_kexec_cleanup(struct kimage
28 ppc_md.machine_kexec_cleanup(image);
29 }
30
31+void arch_crash_save_vmcoreinfo(void)
32+{
33+#ifdef CONFIG_NEED_MULTIPLE_NODES
34+ VMCOREINFO_SYMBOL(node_data);
35+ VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
36+#endif
37+}
38+
39 /*
40 * Do not allocate memory (or fail in any way) in machine_kexec().
41 * We are past the point of no return, committed to rebooting now.