aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/apic_32.c13
-rw-r--r--arch/x86/kernel/apic_64.c12
2 files changed, 25 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index cbcf72cde956..20d4dbc42e6e 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -470,6 +470,19 @@ void __init setup_boot_APIC_clock(void)
470 470
471 local_apic_timer_verify_ok = 1; 471 local_apic_timer_verify_ok = 1;
472 472
473 /*
474 * Do a sanity check on the APIC calibration result
475 */
476 if (calibration_result < (1000000 / HZ)) {
477 local_irq_enable();
478 printk(KERN_WARNING
479 "APIC frequency too slow, disabling apic timer\n");
480 /* No broadcast on UP ! */
481 if (num_possible_cpus() > 1)
482 setup_APIC_timer();
483 return;
484 }
485
473 /* We trust the pm timer based calibration */ 486 /* We trust the pm timer based calibration */
474 if (!pm_referenced) { 487 if (!pm_referenced) {
475 apic_printk(APIC_VERBOSE, "... verify APIC timer\n"); 488 apic_printk(APIC_VERBOSE, "... verify APIC timer\n");
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index d1a696673d9d..731b48660fc4 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -384,6 +384,18 @@ void __init setup_boot_APIC_clock(void)
384 calibrate_APIC_clock(); 384 calibrate_APIC_clock();
385 385
386 /* 386 /*
387 * Do a sanity check on the APIC calibration result
388 */
389 if (calibration_result < (1000000 / HZ)) {
390 printk(KERN_WARNING
391 "APIC frequency too slow, disabling apic timer\n");
392 /* No broadcast on UP ! */
393 if (num_possible_cpus() > 1)
394 setup_APIC_timer();
395 return;
396 }
397
398 /*
387 * If nmi_watchdog is set to IO_APIC, we need the 399 * If nmi_watchdog is set to IO_APIC, we need the
388 * PIT/HPET going. Otherwise register lapic as a dummy 400 * PIT/HPET going. Otherwise register lapic as a dummy
389 * device. 401 * device.