From: Don Zickus <dzickus@redhat.com>
To: Minfei Huang <mhuang@redhat.com>
Cc: cpw@sgi.com, akpm@linux-foundation.org, tglx@linutronix.de,
linux-kernel@vger.kernel.org, x86@kernel.org,
kexec@lists.infradead.org, Minfei Huang <mnfhuang@gmail.com>
Subject: Re: [PATCH] kexec: Remove obsolete flag 'in_crash_kexec'
Date: Mon, 5 Oct 2015 15:12:05 -0400 [thread overview]
Message-ID: <20151005191205.GD100301@redhat.com> (raw)
In-Reply-To: <1444070155-17934-1-git-send-email-mhuang@redhat.com>
On Tue, Oct 06, 2015 at 02:35:55AM +0800, Minfei Huang wrote:
> From: Minfei Huang <mnfhuang@gmail.com>
>
> Previously, UV NMI used 'in_crash_kexec' flag to be sure that we are in
> kdump kernel or not in commit 5edd19af18a36a4e22c570b1b969179e0ca1fe4c
> ("x86, UV: Make kdump avoid stack dumps"). But this flags is removed in
> commit 9c48f1c629ecfa114850c03f875c6691003214de ("x86, nmi: Wire up NMI
> handlers to new routines").
Sounds right.
Acked-by: Don Zickus <dzickus@redhat.com>
>
> Since it isn't used any more, remove it.
>
> Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
> ---
> arch/x86/include/asm/kdebug.h | 6 ------
> arch/x86/kernel/crash.c | 3 ---
> 2 files changed, 9 deletions(-)
>
> diff --git a/arch/x86/include/asm/kdebug.h b/arch/x86/include/asm/kdebug.h
> index b130d59..e5f5dc9 100644
> --- a/arch/x86/include/asm/kdebug.h
> +++ b/arch/x86/include/asm/kdebug.h
> @@ -29,11 +29,5 @@ extern void show_trace(struct task_struct *t, struct pt_regs *regs,
> extern void __show_regs(struct pt_regs *regs, int all);
> extern unsigned long oops_begin(void);
> extern void oops_end(unsigned long, struct pt_regs *, int signr);
> -#ifdef CONFIG_KEXEC_CORE
> -extern int in_crash_kexec;
> -#else
> -/* no crash dump is ever in progress if no crash kernel can be kexec'd */
> -#define in_crash_kexec 0
> -#endif
>
> #endif /* _ASM_X86_KDEBUG_H */
> diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
> index 74ca2fe..2c1910f 100644
> --- a/arch/x86/kernel/crash.c
> +++ b/arch/x86/kernel/crash.c
> @@ -75,8 +75,6 @@ struct crash_memmap_data {
> unsigned int type;
> };
>
> -int in_crash_kexec;
> -
> /*
> * This is used to VMCLEAR all VMCSs loaded on the
> * processor. And when loading kvm_intel module, the
> @@ -132,7 +130,6 @@ static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
>
> static void kdump_nmi_shootdown_cpus(void)
> {
> - in_crash_kexec = 1;
> nmi_shootdown_cpus(kdump_nmi_callback);
>
> disable_local_APIC();
> --
> 2.4.0
>
next prev parent reply other threads:[~2015-10-05 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 18:35 [PATCH] kexec: Remove obsolete flag 'in_crash_kexec' Minfei Huang
2015-10-05 19:12 ` Don Zickus [this message]
2015-10-12 7:45 ` [tip:x86/boot] x86/kexec: Remove obsolete 'in_crash_kexec' flag tip-bot for Minfei Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151005191205.GD100301@redhat.com \
--to=dzickus@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=cpw@sgi.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhuang@redhat.com \
--cc=mnfhuang@gmail.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox