diff options
author | Tom <tomut@yahoo.com> | 2020-10-25 20:10:02 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-26 08:57:25 +0100 |
commit | 8c764319adf36df22a5b39de1d271d6de81e6b8f (patch) | |
tree | 8ba4f3b279128bb4c2cb77cb9ff28f13d8518417 /Kernel/Time | |
parent | b8ad4932a9951296056ef39c3e967c01cd983fa7 (diff) | |
download | serenity-8c764319adf36df22a5b39de1d271d6de81e6b8f.zip |
Kernel: Various APIC timer fixes
Diffstat (limited to 'Kernel/Time')
-rw-r--r-- | Kernel/Time/APICTimer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/APICTimer.cpp b/Kernel/Time/APICTimer.cpp index 2175f89a31..8488949794 100644 --- a/Kernel/Time/APICTimer.cpp +++ b/Kernel/Time/APICTimer.cpp @@ -115,7 +115,7 @@ bool APICTimer::calibrate(HardwareTimerBase& calibration_source) auto delta_apic_count = end_apic_count - start_apic_count; m_timer_period = (delta_apic_count * apic.get_timer_divisor()) / ticks_in_100ms; - auto apic_freq = (delta_apic_count * 16) / apic.get_timer_divisor(); + auto apic_freq = (delta_apic_count * apic.get_timer_divisor()) / apic.get_timer_divisor(); if (apic_freq < 1000000) { klog() << "APICTimer: Frequency too slow!"; return false; |