mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
x86 kdump: create kdump_nmi_shootdown_cpus()
Impact: cleanup For the kdump-specific code that was living on nmi_shootdown_cpus(). Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
b2bbe71b82
commit
d1e7b91cfa
@ -122,10 +122,17 @@ static void nmi_shootdown_cpus(void)
|
||||
}
|
||||
|
||||
/* Leave the nmi callback set */
|
||||
}
|
||||
|
||||
static void kdump_nmi_shootdown_cpus(void)
|
||||
{
|
||||
nmi_shootdown_cpus();
|
||||
|
||||
disable_local_APIC();
|
||||
}
|
||||
|
||||
#else
|
||||
static void nmi_shootdown_cpus(void)
|
||||
static void kdump_nmi_shootdown_cpus(void)
|
||||
{
|
||||
/* There are no cpus to shootdown */
|
||||
}
|
||||
@ -144,7 +151,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
|
||||
/* The kernel is broken so disable interrupts */
|
||||
local_irq_disable();
|
||||
|
||||
nmi_shootdown_cpus();
|
||||
kdump_nmi_shootdown_cpus();
|
||||
lapic_shutdown();
|
||||
#if defined(CONFIG_X86_IO_APIC)
|
||||
disable_IO_APIC();
|
||||
|
Loading…
Reference in New Issue
Block a user