Lines Matching refs:ticks
221 * state a possible ticks wrap-up needs to be
225 if (TD_ON_LOCK(td) && ticks < td->td_blktick) {
234 tticks = ticks - td->td_blktick;
246 panic("%s: possible deadlock detected for %p, blocked for %d ticks\n",
251 ticks < td->td_blktick) {
261 tticks = ticks - td->td_slptick;
293 panic("%s: possible deadlock detected for %p, blocked for %d ticks\n",
366 * cpu ticks. The mean frequency of the second timer is stathz.
387 volatile int ticks;
390 static DPCPU_DEFINE(int, pcputicks); /* Per-CPU version of ticks. */
474 atomic_add_int(&ticks, 1);
509 * Update per-CPU and possibly global ticks values.
513 global = ticks;
521 } while (!atomic_cmpset_int(&ticks, global, *t));
583 *t = ticks;
587 * Compute number of ticks in the specified amount of time.
593 register unsigned long ticks;
600 * ticks, rounding up and adding 1 to allow for the current tick
604 * Otherwise, if the number of ticks in the whole seconds part of
606 * ticks separately and add, using similar rounding methods and
614 * 10ms ticks is 248 days.
631 ticks = 1;
633 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1))
636 ticks = sec * hz
639 ticks = LONG_MAX;
640 if (ticks > INT_MAX)
641 ticks = INT_MAX;
642 return ((int)ticks);