diff options
-rw-r--r-- | arch/x86/kernel/smpboot_32.c | 1 | ||||
-rw-r--r-- | include/asm-x86/nmi.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index 1f3aff4caaf7..a35055361b85 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c | |||
@@ -876,6 +876,7 @@ static void __init smp_boot_cpus(unsigned int max_cpus) | |||
876 | who understands all this stuff should rewrite it properly. --RR 15/Jul/02 */ | 876 | who understands all this stuff should rewrite it properly. --RR 15/Jul/02 */ |
877 | void __init native_smp_prepare_cpus(unsigned int max_cpus) | 877 | void __init native_smp_prepare_cpus(unsigned int max_cpus) |
878 | { | 878 | { |
879 | nmi_watchdog_default(); | ||
879 | smp_commenced_mask = cpumask_of_cpu(0); | 880 | smp_commenced_mask = cpumask_of_cpu(0); |
880 | cpu_callin_map = cpumask_of_cpu(0); | 881 | cpu_callin_map = cpumask_of_cpu(0); |
881 | mb(); | 882 | mb(); |
diff --git a/include/asm-x86/nmi.h b/include/asm-x86/nmi.h index 2b9419903476..1e363021e72f 100644 --- a/include/asm-x86/nmi.h +++ b/include/asm-x86/nmi.h | |||
@@ -39,6 +39,9 @@ static inline void unset_nmi_pm_callback(struct pm_dev *dev) | |||
39 | #ifdef CONFIG_X86_64 | 39 | #ifdef CONFIG_X86_64 |
40 | extern void default_do_nmi(struct pt_regs *); | 40 | extern void default_do_nmi(struct pt_regs *); |
41 | extern void die_nmi(char *str, struct pt_regs *regs, int do_panic); | 41 | extern void die_nmi(char *str, struct pt_regs *regs, int do_panic); |
42 | extern void nmi_watchdog_default(void); | ||
43 | #else | ||
44 | #define nmi_watchdog_default() do {} while (0) | ||
42 | #endif | 45 | #endif |
43 | 46 | ||
44 | extern int check_nmi_watchdog(void); | 47 | extern int check_nmi_watchdog(void); |
@@ -50,7 +53,6 @@ extern int reserve_perfctr_nmi(unsigned int); | |||
50 | extern void release_perfctr_nmi(unsigned int); | 53 | extern void release_perfctr_nmi(unsigned int); |
51 | extern int reserve_evntsel_nmi(unsigned int); | 54 | extern int reserve_evntsel_nmi(unsigned int); |
52 | extern void release_evntsel_nmi(unsigned int); | 55 | extern void release_evntsel_nmi(unsigned int); |
53 | extern void nmi_watchdog_default(void); | ||
54 | 56 | ||
55 | extern void setup_apic_nmi_watchdog(void *); | 57 | extern void setup_apic_nmi_watchdog(void *); |
56 | extern void stop_apic_nmi_watchdog(void *); | 58 | extern void stop_apic_nmi_watchdog(void *); |