Lines Matching refs:ticks
201 tticks = ticks - td->td_blktick;
208 "blocked for %d ticks\n", __func__,
227 tticks = ticks - td->td_slptick;
243 "blocked for %d ticks\n", __func__,
363 * cpu ticks. The mean frequency of the second timer is stathz.
384 volatile int ticks;
387 DPCPU_DEFINE_STATIC(int, pcputicks); /* Per-CPU version of ticks. */
437 * Update per-CPU and possibly global ticks values.
441 global = ticks;
449 } while (!atomic_cmpset_int(&ticks, global, *t));
513 *t = ticks;
517 * Compute number of ticks in the specified amount of time.
522 unsigned long ticks;
529 * ticks, rounding up and adding 1 to allow for the current tick
533 * Otherwise, if the number of ticks in the whole seconds part of
535 * ticks separately and add, using similar rounding methods and
543 * 10ms ticks is 248 days.
560 ticks = 1;
562 ticks = howmany(sec * 1000000 + (unsigned long)usec, tick) + 1;
564 ticks = sec * hz
567 ticks = LONG_MAX;
568 if (ticks > INT_MAX)
569 ticks = INT_MAX;
570 return ((int)ticks);