Lines Matching refs:quota
10829 static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota, in tg_set_cfs_bandwidth() argument
10843 if (quota < min_cfs_quota_period || period < min_cfs_quota_period) in tg_set_cfs_bandwidth()
10857 if (quota != RUNTIME_INF && quota > max_cfs_runtime) in tg_set_cfs_bandwidth()
10860 if (quota != RUNTIME_INF && (burst > quota || in tg_set_cfs_bandwidth()
10861 burst + quota > max_cfs_runtime)) in tg_set_cfs_bandwidth()
10870 ret = __cfs_schedulable(tg, period, quota); in tg_set_cfs_bandwidth()
10874 runtime_enabled = quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
10875 runtime_was_enabled = cfs_b->quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
10884 cfs_b->quota = quota; in tg_set_cfs_bandwidth()
10919 u64 quota, period, burst; in tg_set_cfs_quota() local
10924 quota = RUNTIME_INF; in tg_set_cfs_quota()
10926 quota = (u64)cfs_quota_us * NSEC_PER_USEC; in tg_set_cfs_quota()
10930 return tg_set_cfs_bandwidth(tg, period, quota, burst); in tg_set_cfs_quota()
10937 if (tg->cfs_bandwidth.quota == RUNTIME_INF) in tg_get_cfs_quota()
10940 quota_us = tg->cfs_bandwidth.quota; in tg_get_cfs_quota()
10948 u64 quota, period, burst; in tg_set_cfs_period() local
10954 quota = tg->cfs_bandwidth.quota; in tg_set_cfs_period()
10957 return tg_set_cfs_bandwidth(tg, period, quota, burst); in tg_set_cfs_period()
10972 u64 quota, period, burst; in tg_set_cfs_burst() local
10979 quota = tg->cfs_bandwidth.quota; in tg_set_cfs_burst()
10981 return tg_set_cfs_bandwidth(tg, period, quota, burst); in tg_set_cfs_burst()
11032 u64 period, quota; member
11042 u64 quota, period; in normalize_cfs_quota() local
11046 quota = d->quota; in normalize_cfs_quota()
11049 quota = tg_get_cfs_quota(tg); in normalize_cfs_quota()
11053 if (quota == RUNTIME_INF || quota == -1) in normalize_cfs_quota()
11056 return to_ratio(period, quota); in normalize_cfs_quota()
11063 s64 quota = 0, parent_quota = -1; in tg_cfs_schedulable_down() local
11066 quota = RUNTIME_INF; in tg_cfs_schedulable_down()
11070 quota = normalize_cfs_quota(tg, d); in tg_cfs_schedulable_down()
11081 if (quota == RUNTIME_INF) in tg_cfs_schedulable_down()
11082 quota = parent_quota; in tg_cfs_schedulable_down()
11084 quota = min(quota, parent_quota); in tg_cfs_schedulable_down()
11086 if (quota == RUNTIME_INF) in tg_cfs_schedulable_down()
11087 quota = parent_quota; in tg_cfs_schedulable_down()
11088 else if (parent_quota != RUNTIME_INF && quota > parent_quota) in tg_cfs_schedulable_down()
11092 cfs_b->hierarchical_quota = quota; in tg_cfs_schedulable_down()
11097 static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota) in __cfs_schedulable() argument
11103 .quota = quota, in __cfs_schedulable()
11106 if (quota != RUNTIME_INF) { in __cfs_schedulable()
11108 do_div(data.quota, NSEC_PER_USEC); in __cfs_schedulable()
11384 long period, long quota) in cpu_period_quota_print() argument
11386 if (quota < 0) in cpu_period_quota_print()
11389 seq_printf(sf, "%ld", quota); in cpu_period_quota_print()
11430 u64 quota; in cpu_max_write() local
11433 ret = cpu_period_quota_parse(buf, &period, "a); in cpu_max_write()
11435 ret = tg_set_cfs_bandwidth(tg, period, quota, burst); in cpu_max_write()