Searched refs:get_cycles (Results 1 – 8 of 8) sorted by relevance
16 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()
16 fn get_cycles() -> usize { in get_cycles() method21 Self::get_cycles() + ns * TSCManager::cpu_khz() as usize / 1000000 in cal_expire_cycles()
52 fn get_cycles() -> usize { in get_cycles() method57 Self::get_cycles() + ns * unsafe { TIME_FREQ } / 1000000000 in cal_expire_cycles()
263 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()
49 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()
33 while CurrentTimeArch::get_cycles() < expired_tsc { in nanosleep()
84 CurrentTimeArch::get_cycles() as u64 / khz, in now_cpu_time()507 fn get_cycles() -> usize; in get_cycles() method
60 CurrentTimeArch::get_cycles() as u64, in log()