提交 d1e7b91c 编写于 作者: E Eduardo Habkost 提交者: Ingo Molnar

x86 kdump: create kdump_nmi_shootdown_cpus()

Impact: cleanup

For the kdump-specific code that was living on nmi_shootdown_cpus().
Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 b2bbe71b
...@@ -122,10 +122,17 @@ static void nmi_shootdown_cpus(void) ...@@ -122,10 +122,17 @@ static void nmi_shootdown_cpus(void)
} }
/* Leave the nmi callback set */ /* Leave the nmi callback set */
}
static void kdump_nmi_shootdown_cpus(void)
{
nmi_shootdown_cpus();
disable_local_APIC(); disable_local_APIC();
} }
#else #else
static void nmi_shootdown_cpus(void) static void kdump_nmi_shootdown_cpus(void)
{ {
/* There are no cpus to shootdown */ /* There are no cpus to shootdown */
} }
...@@ -144,7 +151,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs) ...@@ -144,7 +151,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
/* The kernel is broken so disable interrupts */ /* The kernel is broken so disable interrupts */
local_irq_disable(); local_irq_disable();
nmi_shootdown_cpus(); kdump_nmi_shootdown_cpus();
lapic_shutdown(); lapic_shutdown();
#if defined(CONFIG_X86_IO_APIC) #if defined(CONFIG_X86_IO_APIC)
disable_IO_APIC(); disable_IO_APIC();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册