aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-03 22:28:37 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-03 22:28:37 -0500
commit378e4e98258ad92097bfdf795dbef8b49cf52a34 (patch)
treecc1b9f39aef70be38c4f2abb30a760412ff9be9b
parenta75a3f6fc92888e4119744d8594ffdf748c3d444 (diff)
parente9c40d257fdd58c5cc97d3fe3aa141dd23ee5e9d (diff)
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 boot cleanup from Ingo Molnar: "A single commit: remove an obsolete kcrash boot flag" * 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/kexec: Remove obsolete 'in_crash_kexec' flag
-rw-r--r--arch/x86/include/asm/kdebug.h6
-rw-r--r--arch/x86/kernel/crash.c3
2 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/include/asm/kdebug.h b/arch/x86/include/asm/kdebug.h
index b130d59406fb..e5f5dc9787d5 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,
29extern void __show_regs(struct pt_regs *regs, int all); 29extern void __show_regs(struct pt_regs *regs, int all);
30extern unsigned long oops_begin(void); 30extern unsigned long oops_begin(void);
31extern void oops_end(unsigned long, struct pt_regs *, int signr); 31extern void oops_end(unsigned long, struct pt_regs *, int signr);
32#ifdef CONFIG_KEXEC_CORE
33extern 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#endif /* _ASM_X86_KDEBUG_H */ 33#endif /* _ASM_X86_KDEBUG_H */
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index 74ca2fe7a0b3..2c1910f6717e 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -75,8 +75,6 @@ struct crash_memmap_data {
75 unsigned int type; 75 unsigned int type;
76}; 76};
77 77
78int in_crash_kexec;
79
80/* 78/*
81 * This is used to VMCLEAR all VMCSs loaded on the 79 * This is used to VMCLEAR all VMCSs loaded on the
82 * processor. And when loading kvm_intel module, the 80 * processor. And when loading kvm_intel module, the
@@ -132,7 +130,6 @@ static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
132 130
133static void kdump_nmi_shootdown_cpus(void) 131static void kdump_nmi_shootdown_cpus(void)
134{ 132{
135 in_crash_kexec = 1;
136 nmi_shootdown_cpus(kdump_nmi_callback); 133 nmi_shootdown_cpus(kdump_nmi_callback);
137 134
138 disable_local_APIC(); 135 disable_local_APIC();