Lines Matching refs:credit
519 int credit; /* Current amount of credit */ member
777 svc->credit -= val; in t2c_update()
780 static s_time_t c2t(struct csched2_runqueue_data *rqd, s_time_t credit, struct csched2_vcpu *svc) in c2t() argument
782 return credit * svc->weight / rqd->max_weight; in c2t()
1289 if ( svc->credit > iter_svc->credit ) in runq_insert()
1377 score = new->credit - cur->credit; in tickle_score()
1400 int credit, score; in tickle_score() member
1404 d.credit = cur->credit; in tickle_score()
1447 int credit; in runq_tickle() member
1452 d.credit = new->credit; in runq_tickle()
1618 if ( snext->credit < -CSCHED2_CREDIT_INIT ) in reset_credit()
1619 m += (-snext->credit) / CSCHED2_CREDIT_INIT; in reset_credit()
1649 start_credit = svc->credit; in reset_credit()
1655 svc->credit += CSCHED2_CREDIT_INIT; in reset_credit()
1657 svc->credit += m * CSCHED2_CREDIT_INIT; in reset_credit()
1660 if ( svc->credit > CSCHED2_CREDIT_INIT + CSCHED2_CARRYOVER_MAX ) in reset_credit()
1661 svc->credit = CSCHED2_CREDIT_INIT + CSCHED2_CARRYOVER_MAX; in reset_credit()
1675 d.credit_end = svc->credit; in reset_credit()
1697 ASSERT(svc->credit == CSCHED2_IDLE_CREDIT); in burn_credits()
1725 int credit, budget; in burn_credits() member
1730 d.credit = svc->credit; in burn_credits()
2025 svc->credit = CSCHED2_CREDIT_INIT; in csched2_alloc_vdata()
2034 svc->credit = CSCHED2_IDLE_CREDIT; in csched2_alloc_vdata()
3189 rt_credit = snext->credit; in csched2_runtime()
3200 && swait->credit > 0 ) in csched2_runtime()
3202 rt_credit = snext->credit - swait->credit; in csched2_runtime()
3379 && snext->credit + CSCHED2_MIGRATE_RESIST > svc->credit ) in runq_candidate()
3392 if ( (yield || svc->credit > snext->credit) && in runq_candidate()
3405 int credit; in runq_candidate() member
3409 d.credit = snext->credit; in runq_candidate()
3558 if ( skipped_vcpus == 0 && snext->credit <= CSCHED2_CREDIT_RESET ) in csched2_schedule()
3577 snext->credit += CSCHED2_MIGRATE_COMPENSATION; in csched2_schedule()
3627 printk(" credit=%" PRIi32" [w=%u]", svc->credit, svc->weight); in csched2_dump_vcpu()