summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/kexec.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-05-07 14:54:55 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-05-07 14:54:55 +0900
commita5ec39507129a086d8838228ac1ca0a2eab38f91 (patch)
tree01c3cfa2f80aa3144b16c87e2cf769b605c7c889 /arch/sh/include/asm/kexec.h
parent9b7a37853a8cd69829eb1d9715a6c09aae01eeec (diff)
downloadblackbird-op-linux-a5ec39507129a086d8838228ac1ca0a2eab38f91.tar.gz
blackbird-op-linux-a5ec39507129a086d8838228ac1ca0a2eab38f91.zip
sh: convert kexec crash kernel management to LMB.
This migrates the crash kernel handling off of bootmem and over to LMB. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/kexec.h')
-rw-r--r--arch/sh/include/asm/kexec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/include/asm/kexec.h b/arch/sh/include/asm/kexec.h
index 765a5e1660fc..ad6ef8a275ee 100644
--- a/arch/sh/include/asm/kexec.h
+++ b/arch/sh/include/asm/kexec.h
@@ -26,6 +26,10 @@
/* The native architecture */
#define KEXEC_ARCH KEXEC_ARCH_SH
+#ifdef CONFIG_KEXEC
+/* arch/sh/kernel/machine_kexec.c */
+void reserve_crashkernel(void);
+
static inline void crash_setup_regs(struct pt_regs *newregs,
struct pt_regs *oldregs)
{
@@ -59,4 +63,8 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
newregs->pc = (unsigned long)current_text_addr();
}
}
+#else
+static inline void reserve_crashkernel(void) { }
+#endif /* CONFIG_KEXEC */
+
#endif /* __ASM_SH_KEXEC_H */
OpenPOWER on IntegriCloud