diff options
author | Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> | 2012-02-15 20:15:15 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-02-22 18:50:03 -0500 |
commit | 67b43b9d7ced37a2e72e2c3e06464aa0a5be95f9 (patch) | |
tree | 534315d968433edb0de6258278f0bbab72a50d7d /arch/powerpc | |
parent | b500afff11f64227ca69fd2d05986d08d9573935 (diff) |
fadump: Invalidate the fadump registration during machine shutdown.
If dump is active during system reboot, shutdown or halt then invalidate
the fadump registration as it does not get invalidated automatically.
Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 4e62a56e1a95..b0ebdeab9494 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
@@ -110,6 +110,14 @@ EXPORT_SYMBOL(ppc_do_canonicalize_irqs); | |||
110 | /* also used by kexec */ | 110 | /* also used by kexec */ |
111 | void machine_shutdown(void) | 111 | void machine_shutdown(void) |
112 | { | 112 | { |
113 | #ifdef CONFIG_FA_DUMP | ||
114 | /* | ||
115 | * if fadump is active, cleanup the fadump registration before we | ||
116 | * shutdown. | ||
117 | */ | ||
118 | fadump_cleanup(); | ||
119 | #endif | ||
120 | |||
113 | if (ppc_md.machine_shutdown) | 121 | if (ppc_md.machine_shutdown) |
114 | ppc_md.machine_shutdown(); | 122 | ppc_md.machine_shutdown(); |
115 | } | 123 | } |