diff options
author | Matthew McClintock <msm@freescale.com> | 2010-09-16 18:58:23 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-10-14 01:52:46 -0400 |
commit | c71635d288ffd3bcdfb30308f681f9af34f0fc81 (patch) | |
tree | f3bbfcb3c81b85bf3dc228a7685d093a5ac2760d /arch/powerpc/kernel/crash.c | |
parent | fbdd7144ceadd578bc2a875af1dabd67e80ba0d0 (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/crash.c')
-rw-r--r-- | arch/powerpc/kernel/crash.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c index 4457382f8667..832c8c4db254 100644 --- a/arch/powerpc/kernel/crash.c +++ b/arch/powerpc/kernel/crash.c | |||
@@ -414,18 +414,7 @@ void default_machine_crash_shutdown(struct pt_regs *regs) | |||
414 | crash_kexec_wait_realmode(crashing_cpu); | 414 | crash_kexec_wait_realmode(crashing_cpu); |
415 | #endif | 415 | #endif |
416 | 416 | ||
417 | for_each_irq(i) { | 417 | machine_kexec_mask_interrupts(); |
418 | struct irq_desc *desc = irq_to_desc(i); | ||
419 | |||
420 | if (!desc || !desc->chip || !desc->chip->eoi) | ||
421 | continue; | ||
422 | |||
423 | if (desc->status & IRQ_INPROGRESS) | ||
424 | desc->chip->eoi(i); | ||
425 | |||
426 | if (!(desc->status & IRQ_DISABLED)) | ||
427 | desc->chip->shutdown(i); | ||
428 | } | ||
429 | 418 | ||
430 | /* | 419 | /* |
431 | * Call registered shutdown routines savely. Swap out | 420 | * Call registered shutdown routines savely. Swap out |