Home
last modified time | relevance | path

Searched refs:nsecs (Results 1 – 18 of 18) sorted by relevance

/arch/um/os-Linux/
Dtime.c95 static unsigned long long sleep_time(unsigned long long nsecs) in sleep_time() argument
97 return nsecs; in sleep_time()
126 static unsigned long long sleep_time(unsigned long long nsecs) in sleep_time() argument
128 return nsecs > skew ? nsecs - skew : 0; in sleep_time()
169 void idle_sleep(unsigned long long nsecs) in idle_sleep() argument
178 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()
/arch/um/kernel/
Dtime.c107 long long nsecs; in time_init() local
111 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()
Dprocess.c234 unsigned long long nsecs; in default_idle() local
247 nsecs = disable_timer(); in default_idle()
248 idle_sleep(nsecs); in default_idle()
/arch/alpha/lib/
Dudelay.c49 ndelay(unsigned long nsecs) in ndelay() argument
51 nsecs *= (((unsigned long)HZ << 32) / 1000000000) * LPJ; in ndelay()
52 __delay((long)nsecs >> 32); in ndelay()
/arch/sh/lib64/
Dudelay.c46 void __ndelay(unsigned long nsecs) in __ndelay() argument
48 __const_udelay(nsecs * 0x00000005); in __ndelay()
/arch/sh/lib/
Ddelay.c38 void __ndelay(unsigned long nsecs) in __ndelay() argument
40 __const_udelay(nsecs * 0x00000005); in __ndelay()
/arch/avr32/lib/
Ddelay.c54 void __ndelay(unsigned long nsecs) in __ndelay() argument
56 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/m32r/lib/
Ddelay.c121 void __ndelay(unsigned long nsecs) in __ndelay() argument
123 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/x86/lib/
Ddelay.c133 void __ndelay(unsigned long nsecs) in __ndelay() argument
135 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/arch/alpha/include/asm/
Ddelay.h7 extern void ndelay(unsigned long nsecs);
/arch/sparc/include/asm/
Ddelay_32.h24 extern void __ndelay(unsigned long nsecs, unsigned long lpj);
/arch/sh/include/asm/
Ddelay.h14 extern void __ndelay(unsigned long nsecs);
/arch/avr32/include/asm/
Ddelay.h14 extern void __ndelay(unsigned long nsecs);
/arch/x86/include/asm/
Ddelay.h15 extern void __ndelay(unsigned long nsecs);
/arch/um/os-Linux/skas/
Dprocess.c353 unsigned long long nsecs, now; in userspace() local
360 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()
/arch/um/include/shared/
Dos.h240 extern void idle_sleep(unsigned long long nsecs);
/arch/mips/kernel/
Dvpe.c603 unsigned int nsecs, struct module *mod) in simplify_symbols() argument
611 for (i = 0; i < nsecs; i++) { in simplify_symbols()
/arch/x86/kvm/
Dx86.c564 uint64_t nsecs = 1000000000LL; in kvm_set_time_scale() local
570 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()