ladybird/Kernel/Time
Tom cdbd878a14 Kernel: Fix APIC timer calibration to be more accurate
We were calibrating it to 260 instead of 250 ticks per second (being
off by one for the 1/10th second calibration time), resulting in
ticks of only ~3.6 ms instead of ~4ms. This gets us closer to ~4ms,
but because the APIC isn't nearly as precise as e.g. HPET, it will
only be a best effort. Then, use the higher precision reference
timer to more accurately calculate how many ticks we actually get
each second.

Also the frequency calculation was off, causing a "Frequency too slow"
error with VMware.

Fixes some problems observed in #5539
2021-03-01 11:11:09 +01:00
..
APICTimer.cpp Kernel: Fix APIC timer calibration to be more accurate 2021-03-01 11:11:09 +01:00
APICTimer.h Kernel: Fix GenericInterruptHandler problems with virtual functions 2021-02-28 15:27:53 +01:00
HardwareTimer.h Kernel: Fix APIC timer calibration to be more accurate 2021-03-01 11:11:09 +01:00
HPET.cpp Kernel: Fix APIC timer calibration to be more accurate 2021-03-01 11:11:09 +01:00
HPET.h Kernel: Fix APIC timer calibration to be more accurate 2021-03-01 11:11:09 +01:00
HPETComparator.cpp Kernel: Fix APIC timer calibration to be more accurate 2021-03-01 11:11:09 +01:00
HPETComparator.h Kernel: Fix APIC timer calibration to be more accurate 2021-03-01 11:11:09 +01:00
PIT.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
PIT.h Kernel: Improve time keeping and dramatically reduce interrupt load 2020-12-21 18:26:12 +01:00
RTC.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
RTC.h Kernel: Improve time keeping and dramatically reduce interrupt load 2020-12-21 18:26:12 +01:00
TimeManagement.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
TimeManagement.h Kernel: Add RTC as fallback entropy source if HPET is not found 2021-01-26 21:14:44 +01:00