Searched refs:nsec_scale (Results 1 - 12 of 12) sorted by relevance

/illumos-gate/usr/src/uts/sun4/sys/
H A Dclock.h43 extern uint_t nsec_scale;
204 * stash this away in nsec_scale. Thus we can compute (tick * R) as
205 * (tick * nsec_scale) >> 32, which is accurate to about 1 part per billion.
207 * To avoid 64-bit overflow when multiplying (tick << 4) by nsec_scale,
213 * = ((tick << 4) * nsec_scale) >> 32
214 * = ((H << 32) + L) * nsec_scale) >> 32
215 * = (H * nsec_scale) + ((L * nsec_scale) >> 32)
228 * expects the scaling factor nsec_scale as its second argument (so that
229 * callers can distance the load of nsec_scale fro
[all...]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dtimestamp.c62 * implementing the same nsec_scale algorithm as that found in the sun4u
96 * atomically with nsec_scale under CLOCK_LOCK. This assures that time
102 static uint_t nsec_scale; variable
228 TSC_CONVERT_AND_ADD(tsc, hrt, nsec_scale);
270 TSC_CONVERT_AND_ADD(tsc, hrt, nsec_scale);
330 TSC_CONVERT_AND_ADD(tsc, hrt, nsec_scale);
427 TSC_CONVERT(mytsc, hrt, nsec_scale);
620 shadow_nsec_scale = nsec_scale;
639 * resume (i.e nsec_scale remains the same).
653 TSC_CONVERT_AND_ADD(delta, tsc_hrtime_base, nsec_scale);
[all...]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachclock.h96 * (hrestime, hrestime_adj, hres_last_tick, timedelta, nsec_scale, etc)
118 lduw [scr + %lo(nsec_scale)], nano; /* tick-to-ns factor */ \
143 lduw [scr + %lo(nsec_scale)], scale; /* tick-to-ns factor */ \
/illumos-gate/usr/src/uts/sun4v/io/
H A Dhardclk.c105 * nsec_scale. The "& ~1" operation below ensures that
106 * nsec_scale is always even, so that for *any* value of
107 * %tick, multiplying by nsec_scale clears NPT for free.
109 nsec_scale = (uint_t)(((u_longlong_t)NANOSEC << (32 - nsec_shift)) /
/illumos-gate/usr/src/uts/sun4u/io/
H A Dhardclk.c125 * nsec_scale. The "& ~1" operation below ensures that
126 * nsec_scale is always even, so that for *any* value of
127 * %tick, multiplying by nsec_scale clears NPT for free.
129 nsec_scale = (uint_t)(((u_longlong_t)NANOSEC << (32 - nsec_shift)) /
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachclock.h209 * (hrestime, hrestime_adj, hres_last_tick, timedelta, nsec_scale, etc)
231 lduw [scr + %lo(nsec_scale)], nano; /* tick-to-ns factor */ \
257 lduw [scr + %lo(nsec_scale)], scale; /* tick-to-ns factor */ \
/illumos-gate/usr/src/uts/sun4/cpu/
H A Dcpu_module.c39 uint_t nsec_scale; variable
/illumos-gate/usr/src/uts/sun4v/ml/
H A Dmach_subr_asm.s207 ! Use nsec_scale for sun4v which is based on %stick
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dunix.c767 uint32_t nsec_scale; local
807 if (mdb_readsym(&nsec_scale, sizeof (nsec_scale), "nsec_scale") == -1) {
808 mdb_warn("couldn't read 'nsec_scale'");
812 scale = (uint64_t)nsec_scale;
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c76 static uint_t nsec_scale; variable
634 hrt = (mul32(l[1], nsec_scale) << NSEC_SHIFT) +
635 (mul32(l[0], nsec_scale) >> (32 - NSEC_SHIFT));
643 nsec_scale =
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dcommon_asm.s678 ld [%l4 + %lo(nsec_scale)], %l5 ! delay: %l5 = scaling factor
689 ! update hres_last_tick. %l5 has the scaling factor (nsec_scale).
897 uint_t nsec_scale;
913 .global hres_lock, nsec_scale, hrtime_base, traptrace_use_stick
928 nsec_scale: label
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dcommon_asm.s524 ld [%l4 + %lo(nsec_scale)], %l5 ! delay: %l5 = scaling factor
535 ! update hres_last_tick. %l5 has the scaling factor (nsec_scale).
743 uint_t nsec_scale;
759 .global hres_lock, nsec_scale, hrtime_base, traptrace_use_stick
774 nsec_scale: label

Completed in 60 milliseconds