[kernel] Lower APIC calibration timer

Now that the spinwait bug is fixed, the raised time for APIC calibration
can be put back to a lower value. It was previously raised thinking more
time would get a more accurate result -- but accuracy was not the issue.
This commit is contained in:
Justin C. Miller
2021-01-18 18:25:44 -08:00
parent 0305830e32
commit 99ef9166ae

View File

@@ -68,7 +68,7 @@ lapic::calibrate_timer()
set_divisor(1); set_divisor(1);
apic_write(m_base, lapic_timer_init, initial); apic_write(m_base, lapic_timer_init, initial);
uint64_t us = 200000; uint64_t us = 20000;
clock::get().spinwait(us); clock::get().spinwait(us);
uint32_t remaining = apic_read(m_base, lapic_timer_cur); uint32_t remaining = apic_read(m_base, lapic_timer_cur);