Lines Matching refs:now
161 psched_time_t now; /* Cached timestamp */ member
357 psched_time_t now = psched_get_time(); in cbq_mark_toplevel() local
360 if (cl->undertime < now) { in cbq_mark_toplevel()
412 psched_tdiff_t delay = cl->undertime - q->now; in cbq_ovl_classic()
430 cl->undertime = q->now + delay; in cbq_ovl_classic()
447 delay = b->undertime - q->now; in cbq_ovl_classic()
485 psched_tdiff_t delay = cl->undertime - q->now; in cbq_ovl_delay()
492 psched_time_t sched = q->now; in cbq_ovl_delay()
500 cl->undertime = q->now + delay; in cbq_ovl_delay()
531 cl->penalized = q->now + cl->penalty; in cbq_ovl_lowprio()
553 psched_time_t now) in cbq_undelay_prio() argument
557 psched_time_t sched = now; in cbq_undelay_prio()
564 if (now - cl->penalized > 0) { in cbq_undelay_prio()
584 return sched - now; in cbq_undelay_prio()
592 psched_time_t now; in cbq_undelay() local
596 now = psched_get_time(); in cbq_undelay()
607 tmp = cbq_undelay_prio(q, prio, now); in cbq_undelay()
619 time = ktime_add_ns(time, PSCHED_TICKS2NS(now + delay)); in cbq_undelay()
699 psched_time_t now; in cbq_update() local
705 now = q->now + L2T(&q->link, len); in cbq_update()
721 idle = now - cl->last; in cbq_update()
765 cl->undertime = now + idle; in cbq_update()
775 if ((s64)(now - cl->last) > 0) in cbq_update()
776 cl->last = now; in cbq_update()
791 if (cl->undertime == PSCHED_PASTPERFECT || q->now >= cl->undertime) { in cbq_under_limit()
815 } while (cl->undertime != PSCHED_PASTPERFECT && q->now < cl->undertime); in cbq_under_limit()
947 psched_time_t now; in cbq_dequeue() local
949 now = psched_get_time(); in cbq_dequeue()
954 q->now = now; in cbq_dequeue()
1001 now + q->wd_expires); in cbq_dequeue()
1209 q->now = psched_get_time(); in cbq_reset()
1392 q->now = psched_get_time(); in cbq_init()
1601 cl->xstats.undertime = cl->undertime - q->now; in cbq_dump_class_stats()