Searched refs:cpu_khz (Results 1 – 5 of 5) sorted by relevance
59 if unlikely(Self::cpu_khz() != 0 || Self::tsc_khz() != 0) { in determine_cpu_tsc_frequency()73 Self::set_tsc_khz(Self::cpu_khz()); in determine_cpu_tsc_frequency()74 } else if (Self::cpu_khz() as i64 - Self::tsc_khz() as i64).abs() * 10 in determine_cpu_tsc_frequency()75 > Self::cpu_khz() as i64 in determine_cpu_tsc_frequency()81 if Self::cpu_khz() == 0 { in determine_cpu_tsc_frequency()88 Self::cpu_khz() / 1000, in determine_cpu_tsc_frequency()89 Self::cpu_khz() % 1000 in determine_cpu_tsc_frequency()376 pub fn cpu_khz() -> u64 { in cpu_khz() method
21 Self::get_cycles() + ns * TSCManager::cpu_khz() as usize / 1000000 in cal_expire_cycles()27 cycles * 1000000 / TSCManager::cpu_khz() as usize in cycles2ns()
12 if crate::arch::driver::tsc::TSCManager::cpu_khz() == 0 { in sched_clock_cpu()
202 let cpu_khz = TSCManager::cpu_khz(); in periodic_default_initial_count() localVariable207 let count = cpu_khz * Self::INTERVAL_MS / (Self::DIVISOR); in periodic_default_initial_count()
79 let khz = TSCManager::cpu_khz(); in now_cpu_time()