x86 kdump: create kdump_nmi_shootdown_cpus()
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 12 Nov 2008 13:34:39 +0000 (11:34 -0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 12 Nov 2008 17:55:45 +0000 (18:55 +0100)
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>
arch/x86/kernel/crash.c

index ed2f0f9dc894d9599e6b19b4218771140047a6e2..75c468cc7e5954ad4804cd1cb9f56c34c7329418 100644 (file)
@@ -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();