Commit c1f784e5 authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt

powerpc/kdump: Remove ppc_md.machine_crash_shutdown

No one uses ppc_md.machine_crash_shutdown, so remove it.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent c9486878
...@@ -234,12 +234,6 @@ struct machdep_calls { ...@@ -234,12 +234,6 @@ struct machdep_calls {
#ifdef CONFIG_KEXEC #ifdef CONFIG_KEXEC
void (*kexec_cpu_down)(int crash_shutdown, int secondary); void (*kexec_cpu_down)(int crash_shutdown, int secondary);
/* Called to do the minimal shutdown needed to run a kexec'd kernel
* to run successfully.
* XXX Should we move this one out of kexec scope?
*/
void (*machine_crash_shutdown)(struct pt_regs *regs);
/* Called to do what every setup is needed on image and the /* Called to do what every setup is needed on image and the
* reboot code buffer. Returns 0 on success. * reboot code buffer. Returns 0 on success.
* Provide your own (maybe dummy) implementation if your platform * Provide your own (maybe dummy) implementation if your platform
......
...@@ -44,9 +44,6 @@ void machine_kexec_mask_interrupts(void) { ...@@ -44,9 +44,6 @@ void machine_kexec_mask_interrupts(void) {
void machine_crash_shutdown(struct pt_regs *regs) void machine_crash_shutdown(struct pt_regs *regs)
{ {
if (ppc_md.machine_crash_shutdown)
ppc_md.machine_crash_shutdown(regs);
else
default_machine_crash_shutdown(regs); default_machine_crash_shutdown(regs);
} }
......
...@@ -148,6 +148,5 @@ define_machine(qpace) { ...@@ -148,6 +148,5 @@ define_machine(qpace) {
#ifdef CONFIG_KEXEC #ifdef CONFIG_KEXEC
.machine_kexec = default_machine_kexec, .machine_kexec = default_machine_kexec,
.machine_kexec_prepare = default_machine_kexec_prepare, .machine_kexec_prepare = default_machine_kexec_prepare,
.machine_crash_shutdown = default_machine_crash_shutdown,
#endif #endif
}; };
...@@ -66,7 +66,6 @@ static int __init pseries_kexec_setup(void) ...@@ -66,7 +66,6 @@ static int __init pseries_kexec_setup(void)
{ {
ppc_md.machine_kexec = default_machine_kexec; ppc_md.machine_kexec = default_machine_kexec;
ppc_md.machine_kexec_prepare = default_machine_kexec_prepare; ppc_md.machine_kexec_prepare = default_machine_kexec_prepare;
ppc_md.machine_crash_shutdown = default_machine_crash_shutdown;
return 0; return 0;
} }
......
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