Commit aa98c50d authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras
Browse files

[POWERPC] Make kexec_setup() a regular initcall

There's no reason kexec_setup() needs to be called explicitly from
setup_system(), it can just be a regular initcall.
Signed-off-by: default avatarMichael Ellerman <>
Signed-off-by: default avatarPaul Mackerras <>
parent c30a4df3
......@@ -378,11 +378,13 @@ static void __init export_crashk_values(void)
void __init kexec_setup(void)
static int __init kexec_setup(void)
return 0;
static int __init early_parse_crashk(char *p)
......@@ -350,10 +350,6 @@ void __init setup_system(void)
kexec_setup(); /* requires unflattened device tree. */
* Fill the ppc64_caches & systemcfg structures with informations
* retrieved from the device-tree. Need to be called before
......@@ -112,7 +112,6 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
#ifdef __powerpc64__
extern void kexec_smp_wait(void); /* get and clear naca physid, wait for
master to copy new code to 0 */
extern void __init kexec_setup(void);
extern int crashing_cpu;
extern void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *));
#endif /* __powerpc64 __ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment