aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorDon Zickus <dzickus@redhat.com>2010-11-12 11:22:24 -0500
committerIngo Molnar <mingo@elte.hu>2010-11-18 03:08:23 -0500
commit072b198a4ad48bd722ec6d203d65422a4698eae7 (patch)
tree1b932d01a88b896b1548cca36e2e6d696055f0f4 /arch/x86/kernel/smpboot.c
parent5f2b0ba4d94b3ac23cbc4b7f675d98eb677a760a (diff)
x86, nmi_watchdog: Remove all stub function calls from old nmi_watchdog
Now that the bulk of the old nmi_watchdog is gone, remove all the stub variables and hooks associated with it. This touches lots of files mainly because of how the io_apic nmi_watchdog was implemented. Now that the io_apic nmi_watchdog is forever gone, remove all its fingers. Most of this code was not being exercised by virtue of nmi_watchdog != NMI_IO_APIC, so there shouldn't be anything to risky here. Signed-off-by: Don Zickus <dzickus@redhat.com> Cc: fweisbec@gmail.com Cc: gorcunov@openvz.org LKML-Reference: <1289578944-28564-3-git-send-email-dzickus@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 083e99d1b7df..f0a0624eea55 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -316,12 +316,6 @@ notrace static void __cpuinit start_secondary(void *unused)
316 */ 316 */
317 check_tsc_sync_target(); 317 check_tsc_sync_target();
318 318
319 if (nmi_watchdog == NMI_IO_APIC) {
320 legacy_pic->mask(0);
321 enable_NMI_through_LVT0();
322 legacy_pic->unmask(0);
323 }
324
325 /* This must be done before setting cpu_online_mask */ 319 /* This must be done before setting cpu_online_mask */
326 set_cpu_sibling_map(raw_smp_processor_id()); 320 set_cpu_sibling_map(raw_smp_processor_id());
327 wmb(); 321 wmb();
@@ -1061,8 +1055,6 @@ static int __init smp_sanity_check(unsigned max_cpus)
1061 printk(KERN_INFO "SMP mode deactivated.\n"); 1055 printk(KERN_INFO "SMP mode deactivated.\n");
1062 smpboot_clear_io_apic(); 1056 smpboot_clear_io_apic();
1063 1057
1064 localise_nmi_watchdog();
1065
1066 connect_bsp_APIC(); 1058 connect_bsp_APIC();
1067 setup_local_APIC(); 1059 setup_local_APIC();
1068 end_local_APIC_setup(); 1060 end_local_APIC_setup();
@@ -1196,7 +1188,6 @@ void __init native_smp_cpus_done(unsigned int max_cpus)
1196#ifdef CONFIG_X86_IO_APIC 1188#ifdef CONFIG_X86_IO_APIC
1197 setup_ioapic_dest(); 1189 setup_ioapic_dest();
1198#endif 1190#endif
1199 check_nmi_watchdog();
1200 mtrr_aps_init(); 1191 mtrr_aps_init();
1201} 1192}
1202 1193
@@ -1341,8 +1332,6 @@ int native_cpu_disable(void)
1341 if (cpu == 0) 1332 if (cpu == 0)
1342 return -EBUSY; 1333 return -EBUSY;
1343 1334
1344 if (nmi_watchdog == NMI_LOCAL_APIC)
1345 stop_apic_nmi_watchdog(NULL);
1346 clear_local_APIC(); 1335 clear_local_APIC();
1347 1336
1348 cpu_disable_common(); 1337 cpu_disable_common();