Lines Matching refs:quota

8290 static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota)  in tg_set_cfs_bandwidth()  argument
8303 if (quota < min_cfs_quota_period || period < min_cfs_quota_period) in tg_set_cfs_bandwidth()
8320 ret = __cfs_schedulable(tg, period, quota); in tg_set_cfs_bandwidth()
8324 runtime_enabled = quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
8325 runtime_was_enabled = cfs_b->quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
8334 cfs_b->quota = quota; in tg_set_cfs_bandwidth()
8365 u64 quota, period; in tg_set_cfs_quota() local
8369 quota = RUNTIME_INF; in tg_set_cfs_quota()
8371 quota = (u64)cfs_quota_us * NSEC_PER_USEC; in tg_set_cfs_quota()
8373 return tg_set_cfs_bandwidth(tg, period, quota); in tg_set_cfs_quota()
8380 if (tg->cfs_bandwidth.quota == RUNTIME_INF) in tg_get_cfs_quota()
8383 quota_us = tg->cfs_bandwidth.quota; in tg_get_cfs_quota()
8391 u64 quota, period; in tg_set_cfs_period() local
8394 quota = tg->cfs_bandwidth.quota; in tg_set_cfs_period()
8396 return tg_set_cfs_bandwidth(tg, period, quota); in tg_set_cfs_period()
8435 u64 period, quota; member
8445 u64 quota, period; in normalize_cfs_quota() local
8449 quota = d->quota; in normalize_cfs_quota()
8452 quota = tg_get_cfs_quota(tg); in normalize_cfs_quota()
8456 if (quota == RUNTIME_INF || quota == -1) in normalize_cfs_quota()
8459 return to_ratio(period, quota); in normalize_cfs_quota()
8466 s64 quota = 0, parent_quota = -1; in tg_cfs_schedulable_down() local
8469 quota = RUNTIME_INF; in tg_cfs_schedulable_down()
8473 quota = normalize_cfs_quota(tg, d); in tg_cfs_schedulable_down()
8480 if (quota == RUNTIME_INF) in tg_cfs_schedulable_down()
8481 quota = parent_quota; in tg_cfs_schedulable_down()
8482 else if (parent_quota != RUNTIME_INF && quota > parent_quota) in tg_cfs_schedulable_down()
8485 cfs_b->hierarchical_quota = quota; in tg_cfs_schedulable_down()
8490 static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota) in __cfs_schedulable() argument
8496 .quota = quota, in __cfs_schedulable()
8499 if (quota != RUNTIME_INF) { in __cfs_schedulable()
8501 do_div(data.quota, NSEC_PER_USEC); in __cfs_schedulable()