summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/machine_kexec_32.c
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2010-09-16 17:58:23 -0500
committerKumar Gala <galak@kernel.crashing.org>2010-10-14 00:52:46 -0500
commitc71635d288ffd3bcdfb30308f681f9af34f0fc81 (patch)
treef3bbfcb3c81b85bf3dc228a7685d093a5ac2760d /arch/powerpc/kernel/machine_kexec_32.c
parentfbdd7144ceadd578bc2a875af1dabd67e80ba0d0 (diff)
powerpc/kexec: make masking/disabling interrupts generic
Right now just the kexec crash pathway turns turns off the interrupts. Pull that out and make a generic version for use elsewhere Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/machine_kexec_32.c')
-rw-r--r--arch/powerpc/kernel/machine_kexec_32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/machine_kexec_32.c b/arch/powerpc/kernel/machine_kexec_32.c
index ae63a964b85..e63f2e7d2ef 100644
--- a/arch/powerpc/kernel/machine_kexec_32.c
+++ b/arch/powerpc/kernel/machine_kexec_32.c
@@ -39,6 +39,10 @@ void default_machine_kexec(struct kimage *image)
/* Interrupts aren't acceptable while we reboot */
local_irq_disable();
+ /* mask each interrupt so we are in a more sane state for the
+ * kexec kernel */
+ machine_kexec_mask_interrupts();
+
page_list = image->head;
/* we need both effective and real address here */