Browse Source

Kernel: Report more accurate ticks per second for APIC timer

Tom 4 years ago
parent
commit
180cc85d79
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Kernel/Time/APICTimer.cpp

+ 3 - 0
Kernel/Time/APICTimer.cpp

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