Searched refs:cfs_b (Results 1 – 3 of 3) sorted by relevance
3372 void __refill_cfs_bandwidth_runtime(struct cfs_bandwidth *cfs_b) in __refill_cfs_bandwidth_runtime() argument3376 if (cfs_b->quota == RUNTIME_INF) in __refill_cfs_bandwidth_runtime()3380 cfs_b->runtime = cfs_b->quota; in __refill_cfs_bandwidth_runtime()3381 cfs_b->runtime_expires = now + ktime_to_ns(cfs_b->period); in __refill_cfs_bandwidth_runtime()3402 struct cfs_bandwidth *cfs_b = tg_cfs_bandwidth(tg); in assign_cfs_rq_runtime() local3408 raw_spin_lock(&cfs_b->lock); in assign_cfs_rq_runtime()3409 if (cfs_b->quota == RUNTIME_INF) in assign_cfs_rq_runtime()3412 start_cfs_bandwidth(cfs_b); in assign_cfs_rq_runtime()3414 if (cfs_b->runtime > 0) { in assign_cfs_rq_runtime()3415 amount = min(cfs_b->runtime, min_amount); in assign_cfs_rq_runtime()[all …]
315 extern void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b);318 extern void __refill_cfs_bandwidth_runtime(struct cfs_bandwidth *cfs_b);319 extern void start_cfs_bandwidth(struct cfs_bandwidth *cfs_b);
8293 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; in tg_set_cfs_bandwidth() local8325 runtime_was_enabled = cfs_b->quota != RUNTIME_INF; in tg_set_cfs_bandwidth()8332 raw_spin_lock_irq(&cfs_b->lock); in tg_set_cfs_bandwidth()8333 cfs_b->period = ns_to_ktime(period); in tg_set_cfs_bandwidth()8334 cfs_b->quota = quota; in tg_set_cfs_bandwidth()8336 __refill_cfs_bandwidth_runtime(cfs_b); in tg_set_cfs_bandwidth()8339 start_cfs_bandwidth(cfs_b); in tg_set_cfs_bandwidth()8340 raw_spin_unlock_irq(&cfs_b->lock); in tg_set_cfs_bandwidth()8465 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; in tg_cfs_schedulable_down() local8485 cfs_b->hierarchical_quota = quota; in tg_cfs_schedulable_down()[all …]