x86: apic - calibrate_APIC_clock remove redundant irq-enable-disable
authorCyrill Gorcunov <gorcunov@gmail.com>
Mon, 10 Nov 2008 08:16:40 +0000 (09:16 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 10 Nov 2008 08:16:40 +0000 (09:16 +0100)
Impact: cleanup

lapic_timer_setup is self-protected with local_irq_save/restore
no need to use them in caller and levt is the per-cpu variable so
no concurrent access from another cpu.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic.c

index 04a7f960bbc0a2408907a959af527382dae477a5..ce90dc184139b58b2d35308704bd717450ccec2c 100644 (file)
@@ -672,13 +672,9 @@ static int __init calibrate_APIC_clock(void)
                while (lapic_cal_loops <= LAPIC_CAL_LOOPS)
                        cpu_relax();
 
-               local_irq_disable();
-
                /* Stop the lapic timer */
                lapic_timer_setup(CLOCK_EVT_MODE_SHUTDOWN, levt);
 
-               local_irq_enable();
-
                /* Jiffies delta */
                deltaj = lapic_cal_j2 - lapic_cal_j1;
                apic_printk(APIC_VERBOSE, "... jiffies delta = %lu\n", deltaj);