Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/kexec: Remove obsolete 'in_crash_kexec' flag

Previously, UV NMI used the 'in_crash_kexec' flag to determine whether
we are in a kdump kernel or not:

5edd19af18a36a4 ("x86, UV: Make kdump avoid stack dumps")

But this flags was removed in the following commit:

9c48f1c629ecfa1 ("x86, nmi: Wire up NMI handlers to new routines")

Since it isn't used any more, remove it.

Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: cpw@sgi.com
Cc: kexec@lists.infradead.org
Cc: mhuang@redhat.com
Link: http://lkml.kernel.org/r/1444070155-17934-1-git-send-email-mhuang@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Minfei Huang and committed by
Ingo Molnar
e9c40d25 25cb62b7

-9
-6
arch/x86/include/asm/kdebug.h
··· 29 29 extern void __show_regs(struct pt_regs *regs, int all); 30 30 extern unsigned long oops_begin(void); 31 31 extern void oops_end(unsigned long, struct pt_regs *, int signr); 32 - #ifdef CONFIG_KEXEC_CORE 33 - extern int in_crash_kexec; 34 - #else 35 - /* no crash dump is ever in progress if no crash kernel can be kexec'd */ 36 - #define in_crash_kexec 0 37 - #endif 38 32 39 33 #endif /* _ASM_X86_KDEBUG_H */
-3
arch/x86/kernel/crash.c
··· 75 75 unsigned int type; 76 76 }; 77 77 78 - int in_crash_kexec; 79 - 80 78 /* 81 79 * This is used to VMCLEAR all VMCSs loaded on the 82 80 * processor. And when loading kvm_intel module, the ··· 130 132 131 133 static void kdump_nmi_shootdown_cpus(void) 132 134 { 133 - in_crash_kexec = 1; 134 135 nmi_shootdown_cpus(kdump_nmi_callback); 135 136 136 137 disable_local_APIC();