Skip to content

Commit

Permalink
x86 kdump: create kdump_nmi_shootdown_cpus()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eduardo Habkost authored and Ingo Molnar committed Nov 12, 2008
1 parent b2bbe71 commit d1e7b91
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions arch/x86/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand All @@ -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();
Expand Down

0 comments on commit d1e7b91

Please sign in to comment.