Commit c370e5e0 authored by Eduardo Habkost's avatar Eduardo Habkost Committed by Ingo Molnar

x86 kdump: make nmi_shootdown_cpus() non-static

Impact: make API available to the rest of x86 platform code

Add prototype to asm/reboot.h.
Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8e294786
#ifndef _ASM_X86_REBOOT_H #ifndef _ASM_X86_REBOOT_H
#define _ASM_X86_REBOOT_H #define _ASM_X86_REBOOT_H
#include <linux/kdebug.h>
struct pt_regs; struct pt_regs;
struct machine_ops { struct machine_ops {
...@@ -18,4 +20,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs); ...@@ -18,4 +20,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs);
void native_machine_shutdown(void); void native_machine_shutdown(void);
void machine_real_restart(const unsigned char *code, int length); void machine_real_restart(const unsigned char *code, int length);
typedef void (*nmi_shootdown_cb)(int, struct die_args*);
void nmi_shootdown_cpus(nmi_shootdown_cb callback);
#endif /* _ASM_X86_REBOOT_H */ #endif /* _ASM_X86_REBOOT_H */
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <mach_ipi.h> #include <mach_ipi.h>
typedef void (*nmi_shootdown_cb)(int, struct die_args*);
#if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC) #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
...@@ -100,7 +99,7 @@ static struct notifier_block crash_nmi_nb = { ...@@ -100,7 +99,7 @@ static struct notifier_block crash_nmi_nb = {
.notifier_call = crash_nmi_callback, .notifier_call = crash_nmi_callback,
}; };
static void nmi_shootdown_cpus(nmi_shootdown_cb callback) void nmi_shootdown_cpus(nmi_shootdown_cb callback)
{ {
unsigned long msecs; unsigned long msecs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment