Searched refs:sleep_time (Results 1 – 1 of 1) sorted by relevance
27 pub fn nano_sleep(sleep_time: TimeSpec) -> Result<TimeSpec, SystemError> { in nano_sleep()28 if sleep_time.tv_nsec < 0 || sleep_time.tv_nsec >= 1000000000 { in nano_sleep()33 if sleep_time.tv_nsec < 500000 { in nano_sleep()35 unsafe { _rdtsc() + (sleep_time.tv_nsec as u64 * Cpu_tsc_freq) / 1000000000 }; in nano_sleep()48 next_n_us_timer_jiffies((sleep_time.tv_nsec / 1000) as u64), in nano_sleep()75 pub fn us_sleep(sleep_time: TimeSpec) -> Result<TimeSpec, SystemError> { in us_sleep()76 match nano_sleep(sleep_time) { in us_sleep()94 pub extern "C" fn rs_nanosleep(sleep_time: *const timespec, rm_time: *mut timespec) -> i32 { in rs_nanosleep()95 if sleep_time == null_mut() { in rs_nanosleep()99 tv_sec: unsafe { *sleep_time }.tv_sec, in rs_nanosleep()[all …]