1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 18:38:12 +00:00

Kernel: Report more accurate ticks per second for APIC timer

This commit is contained in:
Tom 2020-10-29 15:16:27 -06:00 committed by Andreas Kling
parent d076b00248
commit 180cc85d79

View file

@ -128,6 +128,9 @@ bool APICTimer::calibrate(HardwareTimerBase& calibration_source)
}
#endif
// TODO: measure rather than assuming it matches?
m_frequency = calibration_source.ticks_per_second();
enable_local_timer();
return true;
}