Searched refs:nsecs (Results 1 – 18 of 18) sorted by relevance
95 static unsigned long long sleep_time(unsigned long long nsecs) in sleep_time() argument97 return nsecs; in sleep_time()126 static unsigned long long sleep_time(unsigned long long nsecs) in sleep_time() argument128 return nsecs > skew ? nsecs - skew : 0; in sleep_time()169 void idle_sleep(unsigned long long nsecs) in idle_sleep() argument178 if (nsecs == 0) in idle_sleep()179 nsecs = UM_NSEC_PER_SEC / UM_HZ; in idle_sleep()181 nsecs = sleep_time(nsecs); in idle_sleep()182 ts = ((struct timespec) { .tv_sec = nsecs / UM_NSEC_PER_SEC, in idle_sleep()183 .tv_nsec = nsecs % UM_NSEC_PER_SEC }); in idle_sleep()
107 long long nsecs; in time_init() local111 nsecs = os_nsecs(); in time_init()112 set_normalized_timespec(&wall_to_monotonic, -nsecs / NSEC_PER_SEC, in time_init()113 -nsecs % NSEC_PER_SEC); in time_init()114 set_normalized_timespec(&xtime, nsecs / NSEC_PER_SEC, in time_init()115 nsecs % NSEC_PER_SEC); in time_init()
234 unsigned long long nsecs; in default_idle() local247 nsecs = disable_timer(); in default_idle()248 idle_sleep(nsecs); in default_idle()
49 ndelay(unsigned long nsecs) in ndelay() argument51 nsecs *= (((unsigned long)HZ << 32) / 1000000000) * LPJ; in ndelay()52 __delay((long)nsecs >> 32); in ndelay()
46 void __ndelay(unsigned long nsecs) in __ndelay() argument48 __const_udelay(nsecs * 0x00000005); in __ndelay()
38 void __ndelay(unsigned long nsecs) in __ndelay() argument40 __const_udelay(nsecs * 0x00000005); in __ndelay()
54 void __ndelay(unsigned long nsecs) in __ndelay() argument56 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
121 void __ndelay(unsigned long nsecs) in __ndelay() argument123 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
133 void __ndelay(unsigned long nsecs) in __ndelay() argument135 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
7 extern void ndelay(unsigned long nsecs);
24 extern void __ndelay(unsigned long nsecs, unsigned long lpj);
14 extern void __ndelay(unsigned long nsecs);
15 extern void __ndelay(unsigned long nsecs);
353 unsigned long long nsecs, now; in userspace() local360 nsecs = timer.it_value.tv_sec * UM_NSEC_PER_SEC + in userspace()362 nsecs += os_nsecs(); in userspace()424 if (now < nsecs) in userspace()429 nsecs = timer.it_value.tv_sec * in userspace()433 nsecs += os_nsecs(); in userspace()
240 extern void idle_sleep(unsigned long long nsecs);
603 unsigned int nsecs, struct module *mod) in simplify_symbols() argument611 for (i = 0; i < nsecs; i++) { in simplify_symbols()
564 uint64_t nsecs = 1000000000LL; in kvm_set_time_scale() local570 while (tps64 > nsecs*2) { in kvm_set_time_scale()576 while (tps32 <= (uint32_t)nsecs) { in kvm_set_time_scale()582 hv_clock->tsc_to_system_mul = div_frac(nsecs, tps32); in kvm_set_time_scale()