Lines Matching defs:delay
430 psched_tdiff_t delay = cl->undertime - q->now;
433 delay += cl->offtime;
443 delay -= (-cl->avgidle) - ((-cl->avgidle) >> cl->ewma_log);
446 if (delay <= 0)
447 delay = 1;
448 cl->undertime = q->now + delay;
453 if (q->wd_expires == 0 || q->wd_expires > delay)
454 q->wd_expires = delay;
465 delay = b->undertime - q->now;
466 if (delay < base_delay) {
467 if (delay <= 0)
468 delay = 1;
469 base_delay = delay;
498 /* TC_CBQ_OVL_DELAY: delay until it will go to underlimit */
503 psched_tdiff_t delay = cl->undertime - q->now;
509 delay += cl->offtime;
511 delay -= (-cl->avgidle) - ((-cl->avgidle) >> cl->ewma_log);
514 cl->undertime = q->now + delay;
516 if (delay > 0) {
517 sched += delay + cl->penalty;
533 delay = 1;
535 if (q->wd_expires == 0 || q->wd_expires > delay)
536 q->wd_expires = delay;
607 psched_tdiff_t delay = 0;
624 if (tmp < delay || delay == 0)
625 delay = tmp;
629 if (delay) {
633 time = ktime_add_ns(time, PSCHED_US2NS(now + delay));
751 (1-W)*true_avgidle + W*delay = 0, i.e.