aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/setup.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-05-07 17:58:55 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-05-07 17:58:55 +0900
commit7aed3b34fb0a98e89d0e999f5833ceebdb3876b9 (patch)
treedbf3eb56fe9ad5a42523d1f207443d8ef3fdae78 /arch/sh/kernel/setup.c
parentsh: Ensure that X2 TLB settings are reflected in vmcore. (diff)
downloadlinux-dev-7aed3b34fb0a98e89d0e999f5833ceebdb3876b9.tar.xz
linux-dev-7aed3b34fb0a98e89d0e999f5833ceebdb3876b9.zip
sh: shuffle the elfcorehdr handling over to the crash dump code.
The elfcorehdr parsing was just tossed in setup.c, but nothing outside of the crash dump code/vmcore bits require it, so we just move it out of the way, as per ppc. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to '')
-rw-r--r--arch/sh/kernel/setup.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 9c7f7811af70..4f1585f41f2b 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -380,25 +380,6 @@ static void __init setup_memory(void)
extern void __init setup_memory(void);
#endif
-/*
- * Note: elfcorehdr_addr is not just limited to vmcore. It is also used by
- * is_kdump_kernel() to determine if we are booting after a panic. Hence
- * ifdef it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE.
- */
-#ifdef CONFIG_CRASH_DUMP
-/* elfcorehdr= specifies the location of elf core header
- * stored by the crashed kernel.
- */
-static int __init parse_elfcorehdr(char *arg)
-{
- if (!arg)
- return -EINVAL;
- elfcorehdr_addr = memparse(arg, &arg);
- return 0;
-}
-early_param("elfcorehdr", parse_elfcorehdr);
-#endif
-
void __init __attribute__ ((weak)) plat_early_device_setup(void)
{
}