Home
last modified time | relevance | path

Searched refs:cfs_b (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/kernel/kernel/sched/
H A Dfair.c4677 void __refill_cfs_bandwidth_runtime(struct cfs_bandwidth *cfs_b) in __refill_cfs_bandwidth_runtime() argument
4679 if (cfs_b->quota != RUNTIME_INF) in __refill_cfs_bandwidth_runtime()
4680 cfs_b->runtime = cfs_b->quota; in __refill_cfs_bandwidth_runtime()
4689 static int __assign_cfs_rq_runtime(struct cfs_bandwidth *cfs_b, in __assign_cfs_rq_runtime() argument
4694 lockdep_assert_held(&cfs_b->lock); in __assign_cfs_rq_runtime()
4699 if (cfs_b->quota == RUNTIME_INF) in __assign_cfs_rq_runtime()
4702 start_cfs_bandwidth(cfs_b); in __assign_cfs_rq_runtime()
4704 if (cfs_b->runtime > 0) { in __assign_cfs_rq_runtime()
4705 amount = min(cfs_b->runtime, min_amount); in __assign_cfs_rq_runtime()
4706 cfs_b->runtime -= amount; in __assign_cfs_rq_runtime()
[all …]
H A Dcore.c8345 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; in tg_set_cfs_bandwidth() local
8383 runtime_was_enabled = cfs_b->quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
8390 raw_spin_lock_irq(&cfs_b->lock); in tg_set_cfs_bandwidth()
8391 cfs_b->period = ns_to_ktime(period); in tg_set_cfs_bandwidth()
8392 cfs_b->quota = quota; in tg_set_cfs_bandwidth()
8394 __refill_cfs_bandwidth_runtime(cfs_b); in tg_set_cfs_bandwidth()
8398 start_cfs_bandwidth(cfs_b); in tg_set_cfs_bandwidth()
8400 raw_spin_unlock_irq(&cfs_b->lock); in tg_set_cfs_bandwidth()
8531 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; in tg_cfs_schedulable_down() local
8556 cfs_b->hierarchical_quota = quota; in tg_cfs_schedulable_down()
[all …]
H A Dsched.h488 extern void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b);
490 extern void __refill_cfs_bandwidth_runtime(struct cfs_bandwidth *cfs_b);
491 extern void start_cfs_bandwidth(struct cfs_bandwidth *cfs_b);