Home
last modified time | relevance | path

Searched refs:khz (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs380 fn set_cpu_khz(khz: u64) { in set_cpu_khz()
382 CPU_KHZ = khz; in set_cpu_khz()
386 fn set_tsc_khz(khz: u64) { in set_tsc_khz()
388 TSC_KHZ = khz; in set_tsc_khz()
/DragonOS/kernel/src/time/
H A Dmod.rs79 let khz = TSCManager::cpu_khz(); in now_cpu_time() localVariable
80 if unlikely(khz == 0) { in now_cpu_time()
84 CurrentTimeArch::get_cycles() as u64 / khz, in now_cpu_time()