Lines Matching refs:quota

9446 static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota,  in tg_set_cfs_bandwidth()  argument
9460 if (quota < min_cfs_quota_period || period < min_cfs_quota_period) in tg_set_cfs_bandwidth()
9474 if (quota != RUNTIME_INF && quota > max_cfs_runtime) in tg_set_cfs_bandwidth()
9477 if (quota != RUNTIME_INF && (burst > quota || in tg_set_cfs_bandwidth()
9478 burst + quota > max_cfs_runtime)) in tg_set_cfs_bandwidth()
9488 ret = __cfs_schedulable(tg, period, quota); in tg_set_cfs_bandwidth()
9492 runtime_enabled = quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
9493 runtime_was_enabled = cfs_b->quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
9503 cfs_b->quota = quota; in tg_set_cfs_bandwidth()
9536 u64 quota, period, burst; in tg_set_cfs_quota() local
9541 quota = RUNTIME_INF; in tg_set_cfs_quota()
9543 quota = (u64)cfs_quota_us * NSEC_PER_USEC; in tg_set_cfs_quota()
9547 return tg_set_cfs_bandwidth(tg, period, quota, burst); in tg_set_cfs_quota()
9554 if (tg->cfs_bandwidth.quota == RUNTIME_INF) in tg_get_cfs_quota()
9557 quota_us = tg->cfs_bandwidth.quota; in tg_get_cfs_quota()
9565 u64 quota, period, burst; in tg_set_cfs_period() local
9571 quota = tg->cfs_bandwidth.quota; in tg_set_cfs_period()
9574 return tg_set_cfs_bandwidth(tg, period, quota, burst); in tg_set_cfs_period()
9589 u64 quota, period, burst; in tg_set_cfs_burst() local
9596 quota = tg->cfs_bandwidth.quota; in tg_set_cfs_burst()
9598 return tg_set_cfs_bandwidth(tg, period, quota, burst); in tg_set_cfs_burst()
9649 u64 period, quota; member
9659 u64 quota, period; in normalize_cfs_quota() local
9663 quota = d->quota; in normalize_cfs_quota()
9666 quota = tg_get_cfs_quota(tg); in normalize_cfs_quota()
9670 if (quota == RUNTIME_INF || quota == -1) in normalize_cfs_quota()
9673 return to_ratio(period, quota); in normalize_cfs_quota()
9680 s64 quota = 0, parent_quota = -1; in tg_cfs_schedulable_down() local
9683 quota = RUNTIME_INF; in tg_cfs_schedulable_down()
9687 quota = normalize_cfs_quota(tg, d); in tg_cfs_schedulable_down()
9698 if (quota == RUNTIME_INF) in tg_cfs_schedulable_down()
9699 quota = parent_quota; in tg_cfs_schedulable_down()
9701 quota = min(quota, parent_quota); in tg_cfs_schedulable_down()
9703 if (quota == RUNTIME_INF) in tg_cfs_schedulable_down()
9704 quota = parent_quota; in tg_cfs_schedulable_down()
9705 else if (parent_quota != RUNTIME_INF && quota > parent_quota) in tg_cfs_schedulable_down()
9709 cfs_b->hierarchical_quota = quota; in tg_cfs_schedulable_down()
9714 static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota) in __cfs_schedulable() argument
9719 .quota = quota, in __cfs_schedulable()
9722 if (quota != RUNTIME_INF) { in __cfs_schedulable()
9724 do_div(data.quota, NSEC_PER_USEC); in __cfs_schedulable()
10002 long period, long quota) in cpu_period_quota_print() argument
10004 if (quota < 0) in cpu_period_quota_print()
10007 seq_printf(sf, "%ld", quota); in cpu_period_quota_print()
10048 u64 quota; in cpu_max_write() local
10051 ret = cpu_period_quota_parse(buf, &period, &quota); in cpu_max_write()
10053 ret = tg_set_cfs_bandwidth(tg, period, quota, burst); in cpu_max_write()