mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Report more accurate ticks per second for APIC timer
This commit is contained in:
parent
d076b00248
commit
180cc85d79
Notes:
sideshowbarker
2024-07-19 01:39:23 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/180cc85d797 Pull-request: https://github.com/SerenityOS/serenity/pull/3872
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user