diff options
author | Anton Blanchard | 2011-02-23 13:46:16 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt | 2011-03-02 04:56:48 +0100 |
commit | 357574c48260c9177803a23b881d0af535670ec0 (patch) | |
tree | a71b0703989dc006ed9f672ac8c426f0532aa807 /arch/powerpc/include/asm/machdep.h | |
parent | powerpc/mm: Make hpte_need_flush() safe for preemption (diff) | |
download | kernel-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.h | 6 |
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 |