lkml.org 
[lkml]   [2011]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[RFC PATCH v3 09/10] fadump: Invalidate the fadump registration during machine shutdown.
    From
    Date
    From: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>

    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>
    ---
    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 ce35aaf..67e5caa 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();
    }


    \
     
     \ /
      Last update: 2011-10-31 18:15    [W:0.023 / U:61.868 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site