aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r--arch/powerpc/kernel/setup-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 77bb77da05c1..4e62a56e1a95 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -61,6 +61,7 @@
61#include <asm/xmon.h> 61#include <asm/xmon.h>
62#include <asm/cputhreads.h> 62#include <asm/cputhreads.h>
63#include <mm/mmu_decl.h> 63#include <mm/mmu_decl.h>
64#include <asm/fadump.h>
64 65
65#include "setup.h" 66#include "setup.h"
66 67
@@ -639,6 +640,11 @@ EXPORT_SYMBOL(check_legacy_ioport);
639static int ppc_panic_event(struct notifier_block *this, 640static int ppc_panic_event(struct notifier_block *this,
640 unsigned long event, void *ptr) 641 unsigned long event, void *ptr)
641{ 642{
643 /*
644 * If firmware-assisted dump has been registered then trigger
645 * firmware-assisted dump and let firmware handle everything else.
646 */
647 crash_fadump(NULL, ptr);
642 ppc_md.panic(ptr); /* May not return */ 648 ppc_md.panic(ptr); /* May not return */
643 return NOTIFY_DONE; 649 return NOTIFY_DONE;
644} 650}