summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-10-29 15:16:27 -0600
committerAndreas Kling <kling@serenityos.org>2020-10-29 22:26:08 +0100
commit180cc85d797b443ca29f2e85cdf55e660eb78d19 (patch)
treee666097b8521b79f4b7ae13194f18ad3acd1a0ee
parentd076b002485315bdaa778e4d085c4a47613e86f5 (diff)
downloadserenity-180cc85d797b443ca29f2e85cdf55e660eb78d19.zip
Kernel: Report more accurate ticks per second for APIC timer
-rw-r--r--Kernel/Time/APICTimer.cpp3
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;
}