mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[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:
@@ -68,7 +68,7 @@ lapic::calibrate_timer()
|
||||
set_divisor(1);
|
||||
apic_write(m_base, lapic_timer_init, initial);
|
||||
|
||||
uint64_t us = 200000;
|
||||
uint64_t us = 20000;
|
||||
clock::get().spinwait(us);
|
||||
|
||||
uint32_t remaining = apic_read(m_base, lapic_timer_cur);
|
||||
|
||||
Reference in New Issue
Block a user