Lines Matching refs:now

61 static void		loadtimer(sbintime_t now, int first);
68 static int handleevents(sbintime_t now, int fake);
115 sbintime_t now; /* Last tick time. */
136 sbintime_t now;
143 now = state->now;
144 CTR3(KTR_SPARE2, "ipi at %d: now %d.%08x",
145 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff));
146 done = handleevents(now, 0);
154 handleevents(sbintime_t now, int fake)
162 CTR3(KTR_SPARE2, "handle at %d: now %d.%08x",
163 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff));
176 while (now >= state->nexthard) {
189 while (now >= state->nextstat) {
199 while (now >= state->nextprof) {
209 if (now >= state->nextcallopt || now >= state->nextcall) {
211 callout_process(now);
219 loadtimer(now, (fake == 2) &&
302 sbintime_t now;
318 now = sbinuptime();
320 *next = now + timerperiod;
323 state->now = now;
324 CTR3(KTR_SPARE2, "intr at %d: now %d.%08x",
325 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff));
341 state->now = now;
342 if (now >= state->nextevent) {
355 handleevents(now, 0);
377 loadtimer(sbintime_t now, int start)
396 tmp = now % timerperiod;
400 CTR5(KTR_SPARE2, "load p at %d: now %d.%08x first in %d.%08x",
401 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff),
403 *next = new + now;
413 et_start(timer, new - now, 0);
444 sbintime_t now;
450 now = sbinuptime();
452 loadtimer(now, 1);
466 now = sbinuptime();
467 handleevents(now, 0);
480 sbintime_t now, next;
486 now = sbinuptime();
488 now = 0;
493 next = now + timerperiod;
503 state->now = now;
523 loadtimer(now, 1);
681 sbintime_t now;
686 now = sbinuptime();
688 state->now = now;
694 handleevents(state->now, 2);
761 sbintime_t now, t;
773 now = state->now;
775 now = sbinuptime();
776 CTR3(KTR_SPARE2, "idle at %d: now %d.%08x",
777 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff));
783 loadtimer(now, 0);
785 return (MAX(t - now, 0));
794 sbintime_t now;
802 now = state->now;
804 now = sbinuptime();
805 CTR3(KTR_SPARE2, "active at %d: now %d.%08x",
806 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff));
810 handleevents(now, 1);
962 " now %#jx nevent %#jx (%jd)\n"
967 (uintmax_t)st->now,
969 (uintmax_t)(st->nextevent - st->now) / tick_sbt,
971 (uintmax_t)(st->nexttick - st->now) / tick_sbt,
973 (uintmax_t)(st->nexthard - st->now) / tick_sbt,
975 (uintmax_t)(st->nextstat - st->now) / tick_sbt,
977 (uintmax_t)(st->nextprof - st->now) / tick_sbt,
979 (uintmax_t)(st->nextcall - st->now) / tick_sbt,
981 (uintmax_t)(st->nextcallopt - st->now) / tick_sbt);