瀏覽代碼

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>
Mahesh Salgaonkar 13 年之前
父節點
當前提交
67b43b9d7c
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      arch/powerpc/kernel/setup-common.c

+ 8 - 0
arch/powerpc/kernel/setup-common.c

@@ -110,6 +110,14 @@ EXPORT_SYMBOL(ppc_do_canonicalize_irqs);
 /* also used by kexec */
 /* also used by kexec */
 void machine_shutdown(void)
 void machine_shutdown(void)
 {
 {
+#ifdef CONFIG_FA_DUMP
+	/*
+	 * if fadump is active, cleanup the fadump registration before we
+	 * shutdown.
+	 */
+	fadump_cleanup();
+#endif
+
 	if (ppc_md.machine_shutdown)
 	if (ppc_md.machine_shutdown)
 		ppc_md.machine_shutdown();
 		ppc_md.machine_shutdown();
 }
 }