Lines Matching refs:ticks
98 u_int ts_slptime; /* Number of ticks we vol. slept */
99 u_int ts_runtime; /* Number of ticks we were running */
139 * SCHED_TICK_TARG: Number of hz ticks to average the cpu usage across.
140 * SCHED_TICK_MAX: Maximum number of ticks before scaling back.
142 * SCHED_TICK_HZ: Compute the number of hz ticks for a given ticks count.
143 * SCHED_TICK_TOTAL: Gives the amount of time we've been recording ticks.
155 * by the ratio of ticks to the tick total. NHALF priorities at the start
161 * PRI_TICKS: Compute a priority in PRI_RANGE from the ticks count and total.
195 #define SCHED_SLICE_DEFAULT_DIVISOR 10 /* ~94 ms, 12 stathz ticks. */
268 #define SCHED_AFFINITY(ts, t) ((ts)->ts_rltick > ticks - ((t) * affinity))
1611 "ticks %d ftick %d ltick %d tick pri %d",
1699 ts0->ts_ltick = ticks;
1700 ts0->ts_ftick = ticks;
1708 * at most sched_slice stathz ticks.
1727 int t = ticks;
1731 * over half of the ticks rollover period.
2053 ts->ts_rltick = ticks;
2197 td->td_slptick = ticks;
2227 if (slptick && slptick != ticks) {
2228 ts->ts_slptime += (ticks - slptick) << SCHED_TICK_SHIFT;
2419 * Save the old switch count so we have a record of the last ticks
2890 PCPU_SET(switchticks, ticks);
3070 "Quantum for timeshare threads in stathz ticks");
3085 "Number of hz ticks to keep thread affinity for");
3090 "Average period in stathz ticks to run the long-term balancer");