]> err.no Git - linux-2.6/commitdiff
x86: move local APIC timer init to the end of start_secondary()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 14 Oct 2007 20:57:45 +0000 (22:57 +0200)
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>
Sun, 14 Oct 2007 20:57:45 +0000 (22:57 +0200)
Preparatory patch for the AMD C1E wreckage fixup.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/smpboot_64.c

index 57ccf7cb6b913315263c06548b6fc37ec6f6f380..720a7d1f8862be153b8e356e582c57727cbdaaef 100644 (file)
@@ -335,11 +335,6 @@ void __cpuinit start_secondary(void)
         */
        check_tsc_sync_target();
 
-       Dprintk("cpu %d: setting up apic clock\n", smp_processor_id());         
-       setup_secondary_APIC_clock();
-
-       Dprintk("cpu %d: enabling apic timer\n", smp_processor_id());
-
        if (nmi_watchdog == NMI_IO_APIC) {
                disable_8259A_irq(0);
                enable_NMI_through_LVT0(NULL);
@@ -374,6 +369,8 @@ void __cpuinit start_secondary(void)
 
        unlock_ipi_call_lock();
 
+       setup_secondary_APIC_clock();
+
        cpu_idle();
 }