From: Mahesh Salgaonkar Date: Thu, 16 Feb 2012 01:15:15 +0000 (+0000) Subject: fadump: Invalidate the fadump registration during machine shutdown. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67b43b9d7ced37a2e72e2c3e06464aa0a5be95f9;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 4e62a56e1a9..b0ebdeab949 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); /* also used by kexec */ 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) ppc_md.machine_shutdown(); }