Lines Matching refs:rt_runtime

44 	rt_b->rt_runtime = runtime;  in init_rt_bandwidth()
55 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF) in start_rt_bandwidth()
101 rt_rq->rt_runtime = 0; in init_rt_rq()
211 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
447 return rt_rq->rt_runtime; in sched_rt_runtime()
567 return rt_rq->rt_runtime; in sched_rt_runtime()
632 rt_rq->rt_time < rt_b->rt_runtime); in sched_rt_bandwidth_account()
663 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime()
670 diff = iter->rt_runtime - iter->rt_time; in do_balance_runtime()
673 if (rt_rq->rt_runtime + diff > rt_period) in do_balance_runtime()
674 diff = rt_period - rt_rq->rt_runtime; in do_balance_runtime()
675 iter->rt_runtime -= diff; in do_balance_runtime()
676 rt_rq->rt_runtime += diff; in do_balance_runtime()
677 if (rt_rq->rt_runtime == rt_period) { in do_balance_runtime()
712 if (rt_rq->rt_runtime == RUNTIME_INF || in __disable_runtime()
713 rt_rq->rt_runtime == rt_b->rt_runtime) in __disable_runtime()
722 want = rt_b->rt_runtime - rt_rq->rt_runtime; in __disable_runtime()
734 if (iter == rt_rq || iter->rt_runtime == RUNTIME_INF) in __disable_runtime()
739 diff = min_t(s64, iter->rt_runtime, want); in __disable_runtime()
740 iter->rt_runtime -= diff; in __disable_runtime()
743 iter->rt_runtime -= want; in __disable_runtime()
763 rt_rq->rt_runtime = RUNTIME_INF; in __disable_runtime()
789 rt_rq->rt_runtime = rt_b->rt_runtime; in __enable_runtime()
802 if (rt_rq->rt_time > rt_rq->rt_runtime) { in balance_runtime()
842 if (!sched_feat(RT_RUNTIME_SHARE) && rt_rq->rt_runtime != RUNTIME_INF) in do_sched_rt_period_timer()
843 rt_rq->rt_runtime = rt_b->rt_runtime; in do_sched_rt_period_timer()
858 runtime = rt_rq->rt_runtime; in do_sched_rt_period_timer()
890 if (!throttled && (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)) in do_sched_rt_period_timer()
930 if (likely(rt_b->rt_runtime)) { in sched_rt_runtime_exceeded()
2421 u64 rt_runtime; member
2432 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2436 runtime = d->rt_runtime; in tg_rt_schedulable()
2464 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2468 runtime = d->rt_runtime; in tg_rt_schedulable()
2487 .rt_runtime = runtime, in __rt_schedulable()
2498 u64 rt_period, u64 rt_runtime) in tg_set_rt_bandwidth() argument
2506 if (tg == &root_task_group && rt_runtime == 0) in tg_set_rt_bandwidth()
2515 err = __rt_schedulable(tg, rt_period, rt_runtime); in tg_set_rt_bandwidth()
2521 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2527 rt_rq->rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2540 u64 rt_runtime, rt_period; in sched_group_set_rt_runtime() local
2543 rt_runtime = (u64)rt_runtime_us * NSEC_PER_USEC; in sched_group_set_rt_runtime()
2545 rt_runtime = RUNTIME_INF; in sched_group_set_rt_runtime()
2549 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_runtime()
2556 if (tg->rt_bandwidth.rt_runtime == RUNTIME_INF) in sched_group_rt_runtime()
2559 rt_runtime_us = tg->rt_bandwidth.rt_runtime; in sched_group_rt_runtime()
2566 u64 rt_runtime, rt_period; in sched_group_set_rt_period() local
2572 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2574 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_period()
2602 if (rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()
2619 rt_rq->rt_runtime = global_rt_runtime(); in sched_rt_global_constraints()
2642 def_rt_bandwidth.rt_runtime = global_rt_runtime(); in sched_rt_do_global()