summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/machdep.h
diff options
context:
space:
mode:
authorAnton Blanchard2011-02-23 13:46:16 +0100
committerBenjamin Herrenschmidt2011-03-02 04:56:48 +0100
commit357574c48260c9177803a23b881d0af535670ec0 (patch)
treea71b0703989dc006ed9f672ac8c426f0532aa807 /arch/powerpc/include/asm/machdep.h
parentpowerpc/mm: Make hpte_need_flush() safe for preemption (diff)
downloadkernel-qcow2-linux-357574c48260c9177803a23b881d0af535670ec0.tar.gz
kernel-qcow2-linux-357574c48260c9177803a23b881d0af535670ec0.tar.xz
kernel-qcow2-linux-357574c48260c9177803a23b881d0af535670ec0.zip
powerpc/kexec: Restore ppc_md.machine_kexec
Kyle Moffett points out that mpc85xx has started using the ppc_md.machine_kexec hook. As such, revert patch c94868788cf2 (powerpc/kexec: Remove ppc_md.machine_kexec). Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/machdep.h')
-rw-r--r--arch/powerpc/include/asm/machdep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h
index 991d5998d6be..fe56a23e1ff0 100644
--- a/arch/powerpc/include/asm/machdep.h
+++ b/arch/powerpc/include/asm/machdep.h
@@ -240,6 +240,12 @@ struct machdep_calls {
* claims to support kexec.
*/
int (*machine_kexec_prepare)(struct kimage *image);
+
+ /* Called to perform the _real_ kexec.
+ * Do NOT allocate memory or fail here. We are past the point of
+ * no return.
+ */
+ void (*machine_kexec)(struct kimage *image);
#endif /* CONFIG_KEXEC */
#ifdef CONFIG_SUSPEND