Lines Matching refs:delay

467 	psched_tdiff_t delay = PSCHED_TDIFF(cl->undertime, q->now);  in cbq_ovl_classic()  local
470 delay += cl->offtime; in cbq_ovl_classic()
480 delay -= (-cl->avgidle) - ((-cl->avgidle) >> cl->ewma_log); in cbq_ovl_classic()
483 if (delay <= 0) in cbq_ovl_classic()
484 delay = 1; in cbq_ovl_classic()
485 PSCHED_TADD2(q->now, delay, cl->undertime); in cbq_ovl_classic()
490 if (q->wd_expires == 0 || q->wd_expires > delay) in cbq_ovl_classic()
491 q->wd_expires = delay; in cbq_ovl_classic()
502 delay = PSCHED_TDIFF(b->undertime, q->now); in cbq_ovl_classic()
503 if (delay < base_delay) { in cbq_ovl_classic()
504 if (delay <= 0) in cbq_ovl_classic()
505 delay = 1; in cbq_ovl_classic()
506 base_delay = delay; in cbq_ovl_classic()
540 psched_tdiff_t delay = PSCHED_TDIFF(cl->undertime, q->now); in cbq_ovl_delay() local
545 delay += cl->offtime; in cbq_ovl_delay()
547 delay -= (-cl->avgidle) - ((-cl->avgidle) >> cl->ewma_log); in cbq_ovl_delay()
550 PSCHED_TADD2(q->now, delay, cl->undertime); in cbq_ovl_delay()
552 if (delay > 0) { in cbq_ovl_delay()
553 sched += PSCHED_US2JIFFIE(delay) + cl->penalty; in cbq_ovl_delay()
565 delay = 1; in cbq_ovl_delay()
567 if (q->wd_expires == 0 || q->wd_expires > delay) in cbq_ovl_delay()
568 q->wd_expires = delay; in cbq_ovl_delay()
645 long delay = 0; in cbq_undelay() local
660 if (tmp < delay || delay == 0) in cbq_undelay()
661 delay = tmp; in cbq_undelay()
665 if (delay) { in cbq_undelay()
666 q->delay_timer.expires = jiffies + delay; in cbq_undelay()
1058 long delay = PSCHED_US2JIFFIE(q->wd_expires); in cbq_dequeue() local
1059 if (delay <= 0) in cbq_dequeue()
1060 delay = 1; in cbq_dequeue()
1061 mod_timer(&q->wd_timer, jiffies + delay); in cbq_dequeue()