Home
last modified time | relevance | path

Searched refs:cpu_khz (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs59 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
/DragonOS/kernel/src/arch/x86_64/
H A Dtime.rs21 Self::get_cycles() + ns * TSCManager::cpu_khz() as usize / 1000000 in cal_expire_cycles()
27 cycles * 1000000 / TSCManager::cpu_khz() as usize in cycles2ns()
/DragonOS/kernel/src/sched/
H A Dclock.rs12 if crate::arch::driver::tsc::TSCManager::cpu_khz() == 0 { in sched_clock_cpu()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dapic_timer.rs202 let cpu_khz = TSCManager::cpu_khz(); in periodic_default_initial_count() localVariable
207 let count = cpu_khz * Self::INTERVAL_MS / (Self::DIVISOR); in periodic_default_initial_count()
/DragonOS/kernel/src/time/
H A Dmod.rs79 let khz = TSCManager::cpu_khz(); in now_cpu_time()