Lines Matching refs:ticks
228 tticks = ticks - td->td_blktick;
240 panic("%s: possible deadlock detected for %p, blocked for %d ticks\n",
254 tticks = ticks - td->td_slptick;
286 panic("%s: possible deadlock detected for %p, blocked for %d ticks\n",
363 * cpu ticks. The mean frequency of the second timer is stathz.
384 volatile int ticks;
387 static DPCPU_DEFINE(int, pcputicks); /* Per-CPU version of ticks. */
477 atomic_add_int(&ticks, 1);
508 * Update per-CPU and possibly global ticks values.
512 global = ticks;
520 } while (!atomic_cmpset_int(&ticks, global, *t));
580 *t = ticks;
584 * Compute number of ticks in the specified amount of time.
589 unsigned long ticks;
596 * ticks, rounding up and adding 1 to allow for the current tick
600 * Otherwise, if the number of ticks in the whole seconds part of
602 * ticks separately and add, using similar rounding methods and
610 * 10ms ticks is 248 days.
627 ticks = 1;
629 ticks = howmany(sec * 1000000 + (unsigned long)usec, tick) + 1;
631 ticks = sec * hz
634 ticks = LONG_MAX;
635 if (ticks > INT_MAX)
636 ticks = INT_MAX;
637 return ((int)ticks);