From d3627801d7248017a88a4f65d6b10611979bc3c4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 22 Aug 2025 15:02:05 -0400 Subject: [PATCH] kernel/x86: Avoid re-reading the APIC timer config unnecessarily. --- src/system/kernel/arch/x86/timers/x86_apic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/timers/x86_apic.cpp b/src/system/kernel/arch/x86/timers/x86_apic.cpp index f92ec08687..4c104be7b4 100644 --- a/src/system/kernel/arch/x86/timers/x86_apic.cpp +++ b/src/system/kernel/arch/x86/timers/x86_apic.cpp @@ -77,7 +77,7 @@ apic_timer_set_hardware_timer(bigtime_t relativeTimeout) apic_set_lvt_initial_timer_count(0); // zero out the timer - config = apic_lvt_timer() & ~APIC_LVT_MASKED; // unmask the timer + config &= ~APIC_LVT_MASKED; // unmask the timer apic_set_lvt_timer(config); TRACE("arch_smp_set_apic_timer: config 0x%" B_PRIx32 ", timeout %" B_PRIdBIGTIME