summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/setup.c
diff options
context:
space:
mode:
authorSimon Horman2008-10-19 05:28:29 +0200
committerLinus Torvalds2008-10-20 17:52:40 +0200
commitd9a9855d0b06ca6d6cc92596fedcc03f8512e062 (patch)
tree31e3116ebf9c57915de08cdc5f918600b5395ce4 /arch/ia64/kernel/setup.c
parentkdump: add is_vmcore_usable() and vmcore_unusable() (diff)
downloadkernel-qcow2-linux-d9a9855d0b06ca6d6cc92596fedcc03f8512e062.tar.gz
kernel-qcow2-linux-d9a9855d0b06ca6d6cc92596fedcc03f8512e062.tar.xz
kernel-qcow2-linux-d9a9855d0b06ca6d6cc92596fedcc03f8512e062.zip
always reserve elfcore header memory in crash kernel
elfcore header memory needs to be reserved in a crash kernel. This means that the relevant code should be protected by CONFIG_CRASH_DUMP rather than CONFIG_PROC_VMCORE. Signed-off-by: Simon Horman <horms@verge.net.au> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/ia64/kernel/setup.c')
-rw-r--r--arch/ia64/kernel/setup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index 60286522d54a..916ba898237f 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -352,7 +352,7 @@ reserve_memory (void)
}
#endif
-#ifdef CONFIG_PROC_VMCORE
+#ifdef CONFIG_CRASH_KERNEL
if (reserve_elfcorehdr(&rsvd_region[n].start,
&rsvd_region[n].end) == 0)
n++;
@@ -496,9 +496,7 @@ static int __init parse_elfcorehdr(char *arg)
return 0;
}
early_param("elfcorehdr", parse_elfcorehdr);
-#endif
-#ifdef CONFIG_PROC_VMCORE
int __init reserve_elfcorehdr(unsigned long *start, unsigned long *end)
{
unsigned long length;