/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 30 int nsec_per_tick = 1000000; variable 47 return (hrt / nsec_per_tick); in ddi_get_lbolt() 56 return (hrt / nsec_per_tick); in ddi_get_lbolt64()
|
H A D | mapfile-vers | 196 nsec_per_tick;
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | timex.c | 43 #define NSEC_TO_TICK(nsec) ((nsec) / nsec_per_tick) 45 nsec_per_tick/2) 49 static int nsec_per_tick; variable 78 nsec_per_tick = NANOSEC / hz; in main()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | clock_impl.h | 98 ((gethrtime_waitfree()/nsec_per_tick) - \ 126 ((gethrtime()/nsec_per_tick) - lb_info->lbi_debug_time) : \
|
H A D | time.h | 275 extern int nsec_per_tick; /* nanoseconds per clock tick */ 298 #define TICK_TO_NSEC(tick) ((hrtime_t)(tick) * nsec_per_tick) 299 #define NSEC_TO_TICK(nsec) ((nsec) / nsec_per_tick)
|
/illumos-gate/usr/src/uts/common/conf/ |
H A D | param.c | 179 int nsec_per_tick; variable 656 nsec_per_tick = NANOSEC / hz; in param_init() 657 max_hres_adj = nsec_per_tick >> ADJ_SHIFT; in param_init() 671 time_res[TR_CLOCK_TICK] = nsec_per_tick; in param_init()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock_realtime.c | 66 ts->tv_nsec = nsec_per_tick; in clock_realtime_getres() 122 interval2nth.tv_nsec < nsec_per_tick) in clock_realtime_fire() 123 interval2nth.tv_nsec = nsec_per_tick; in clock_realtime_fire()
|
H A D | clock.c | 966 clk_when.cyt_interval = nsec_per_tick; in clock_init() 977 lbolt_when.cyt_interval = nsec_per_tick; in clock_init() 1020 (gethrtime()/nsec_per_tick); in clock_init() 2449 lb_info->lbi_internal = (ts/nsec_per_tick); in lbolt_ev_to_cyclic() 2454 exp = ts + nsec_per_tick - 1; in lbolt_ev_to_cyclic() 2455 exp = (exp/nsec_per_tick) * nsec_per_tick; in lbolt_ev_to_cyclic() 2482 ASSERT(nsec_per_tick > 0); in lbolt_event_driven() 2483 lb = (ts/nsec_per_tick); in lbolt_event_driven() 2655 ASSERT(nsec_per_tick > 0); in lbolt_debug_return() 2658 lb_info->lbi_internal = (ts/nsec_per_tick); in lbolt_debug_return() [all …]
|
H A D | condvar.c | 237 return (cv_timedwait_hires(cvp, mp, hrtim, nsec_per_tick, 0)); in cv_timedwait() 481 return (cv_timedwait_sig_hires(cvp, mp, hrtim, nsec_per_tick, 0)); in cv_timedwait_sig() 795 if (interval < nsec_per_tick) in cv_waituntil_sig() 796 interval = nsec_per_tick; in cv_waituntil_sig()
|
H A D | callout.c | 1208 TICK_TO_NSEC(delta), nsec_per_tick, CALLOUT_LEGACY); in timeout() 1231 nsec_per_tick, 0); in timeout_default() 1250 TICK_TO_NSEC(delta), nsec_per_tick, CALLOUT_LEGACY); in realtime_timeout() 1273 nsec_per_tick, 0); in realtime_timeout_default()
|
H A D | kstat_fr.c | 165 kstat_named_t nsec_per_tick; member 865 system_misc_kstat.nsec_per_tick.value.ui32 = (uint32_t) in system_misc_kstat_update() 866 nsec_per_tick; in system_misc_kstat_update()
|
H A D | timers.c | 909 nsec = tv->tv_nsec - now.tv_nsec + nsec_per_tick - 1; in timespectohz() 949 nsec = tv->tv_nsec + nsec_per_tick - 1; in timespectohz64()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lwp_timer.c | 74 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick, in lwp_timer_timeout() 164 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick, in lwp_timer_enqueue()
|
H A D | poll.c | 355 deadline = MAX(deadline, nsec_per_tick); in poll_common()
|
/illumos-gate/usr/src/uts/sun4/io/ |
H A D | cbe.c | 312 when.cyt_interval = nsec_per_tick; in cbe_init()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | cbe.c | 372 when.cyt_interval = nsec_per_tick; in cbe_init()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | genunix.c | 911 int nsec_per_tick; /* for conversions */ member 1471 if (mdb_readvar(&(coargs->nsec_per_tick), "nsec_per_tick") == -1) { in callout_common_init() 1538 coargs.time *= coargs.nsec_per_tick; in callout() 1539 coargs.atime *= coargs.nsec_per_tick; in callout() 1540 coargs.btime *= coargs.nsec_per_tick; in callout() 1708 #define nsec_per_tick coargs.nsec_per_tick in calloutid() macro 1713 #undef nsec_per_tick in calloutid()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mp_machdep.c | 1450 return (nsec_per_tick); in mach_clkinit()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | devpoll.c | 1245 deadline = MAX(deadline, nsec_per_tick); in dpioctl()
|