diff options
author | Tom <tomut@yahoo.com> | 2020-10-29 15:16:27 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-29 22:26:08 +0100 |
commit | 180cc85d797b443ca29f2e85cdf55e660eb78d19 (patch) | |
tree | e666097b8521b79f4b7ae13194f18ad3acd1a0ee /Kernel | |
parent | d076b002485315bdaa778e4d085c4a47613e86f5 (diff) | |
download | serenity-180cc85d797b443ca29f2e85cdf55e660eb78d19.zip |
Kernel: Report more accurate ticks per second for APIC timer
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Time/APICTimer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Time/APICTimer.cpp b/Kernel/Time/APICTimer.cpp index 96d792bf77..7f91f4a06b 100644 --- a/Kernel/Time/APICTimer.cpp +++ b/Kernel/Time/APICTimer.cpp @@ -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; } |