Home
last modified time | relevance | path

Searched refs:get_cycles (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/sched/
H A Dclock.rs16 return CurrentTimeArch::cycles2ns(CurrentTimeArch::get_cycles()) as u64; in sched_clock_cpu()
21 return CurrentTimeArch::cycles2ns(CurrentTimeArch::get_cycles()) as u64; in sched_clock_cpu()
/DragonOS/kernel/src/arch/x86_64/
H A Dtime.rs16 fn get_cycles() -> usize { in get_cycles() method
21 Self::get_cycles() + ns * TSCManager::cpu_khz() as usize / 1000000 in cal_expire_cycles()
/DragonOS/kernel/src/arch/riscv64/
H A Dtime.rs52 fn get_cycles() -> usize { in get_cycles() method
57 Self::get_cycles() + ns * unsafe { TIME_FREQ } / 1000000000 in cal_expire_cycles()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs263 let mut tsc = CurrentTimeArch::get_cycles() as u64; in pit_calibrate_tsc()
270 t2 = CurrentTimeArch::get_cycles() as u64; in pit_calibrate_tsc()
317 let t1 = CurrentTimeArch::get_cycles() as u64; in read_refs()
323 let t2 = CurrentTimeArch::get_cycles() as u64; in read_refs()
/DragonOS/kernel/src/driver/clocksource/
H A Dtimer_riscv.rs49 sbi_rt::set_timer(CurrentTimeArch::get_cycles() as u64 + unsafe { INTERVAL_CNT } as u64); in handle_irq()
98 sbi_rt::set_timer(CurrentTimeArch::get_cycles() as u64); in riscv_sbi_timer_init_local()
/DragonOS/kernel/src/time/
H A Dsleep.rs33 while CurrentTimeArch::get_cycles() < expired_tsc { in nanosleep()
H A Dmod.rs84 CurrentTimeArch::get_cycles() as u64 / khz, in now_cpu_time()
507 fn get_cycles() -> usize; in get_cycles() method
/DragonOS/kernel/src/debug/klog/
H A Dmm.rs60 CurrentTimeArch::get_cycles() as u64, in log()