Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e030431 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar
Browse files

x86: apic - calibrate_APIC_clock remove redundant irq-enable-disable



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: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Acked-by: default avatar"Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4ecd33d9
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -672,13 +672,9 @@ static int __init calibrate_APIC_clock(void)
		while (lapic_cal_loops <= LAPIC_CAL_LOOPS)
		while (lapic_cal_loops <= LAPIC_CAL_LOOPS)
			cpu_relax();
			cpu_relax();


		local_irq_disable();

		/* Stop the lapic timer */
		/* Stop the lapic timer */
		lapic_timer_setup(CLOCK_EVT_MODE_SHUTDOWN, levt);
		lapic_timer_setup(CLOCK_EVT_MODE_SHUTDOWN, levt);


		local_irq_enable();

		/* Jiffies delta */
		/* Jiffies delta */
		deltaj = lapic_cal_j2 - lapic_cal_j1;
		deltaj = lapic_cal_j2 - lapic_cal_j1;
		apic_printk(APIC_VERBOSE, "... jiffies delta = %lu\n", deltaj);
		apic_printk(APIC_VERBOSE, "... jiffies delta = %lu\n", deltaj);