소스 검색

Kernel: Report more accurate ticks per second for APIC timer

Tom 4 년 전
부모
커밋
180cc85d79
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Kernel/Time/APICTimer.cpp

+ 3 - 0
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;
 }