Lines Matching refs:rt_runtime

46 	rt_b->rt_runtime = runtime;  in init_rt_bandwidth()
57 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF) in start_rt_bandwidth()
103 rt_rq->rt_runtime = 0; in init_rt_rq()
213 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
488 return rt_rq->rt_runtime; in sched_rt_runtime()
608 return rt_rq->rt_runtime; in sched_rt_runtime()
673 rt_rq->rt_time < rt_b->rt_runtime); in sched_rt_bandwidth_account()
704 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime()
711 diff = iter->rt_runtime - iter->rt_time; in do_balance_runtime()
714 if (rt_rq->rt_runtime + diff > rt_period) in do_balance_runtime()
715 diff = rt_period - rt_rq->rt_runtime; in do_balance_runtime()
716 iter->rt_runtime -= diff; in do_balance_runtime()
717 rt_rq->rt_runtime += diff; in do_balance_runtime()
718 if (rt_rq->rt_runtime == rt_period) { in do_balance_runtime()
753 if (rt_rq->rt_runtime == RUNTIME_INF || in __disable_runtime()
754 rt_rq->rt_runtime == rt_b->rt_runtime) in __disable_runtime()
763 want = rt_b->rt_runtime - rt_rq->rt_runtime; in __disable_runtime()
775 if (iter == rt_rq || iter->rt_runtime == RUNTIME_INF) in __disable_runtime()
780 diff = min_t(s64, iter->rt_runtime, want); in __disable_runtime()
781 iter->rt_runtime -= diff; in __disable_runtime()
784 iter->rt_runtime -= want; in __disable_runtime()
804 rt_rq->rt_runtime = RUNTIME_INF; in __disable_runtime()
830 rt_rq->rt_runtime = rt_b->rt_runtime; in __enable_runtime()
843 if (rt_rq->rt_time > rt_rq->rt_runtime) { in balance_runtime()
883 if (!sched_feat(RT_RUNTIME_SHARE) && rt_rq->rt_runtime != RUNTIME_INF) in do_sched_rt_period_timer()
884 rt_rq->rt_runtime = rt_b->rt_runtime; in do_sched_rt_period_timer()
899 runtime = rt_rq->rt_runtime; in do_sched_rt_period_timer()
931 if (!throttled && (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)) in do_sched_rt_period_timer()
971 if (likely(rt_b->rt_runtime)) { in sched_rt_runtime_exceeded()
2497 u64 rt_runtime; member
2508 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2512 runtime = d->rt_runtime; in tg_rt_schedulable()
2525 tg->rt_bandwidth.rt_runtime && tg_has_rt_tasks(tg)) in tg_rt_schedulable()
2541 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2545 runtime = d->rt_runtime; in tg_rt_schedulable()
2564 .rt_runtime = runtime, in __rt_schedulable()
2575 u64 rt_period, u64 rt_runtime) in tg_set_rt_bandwidth() argument
2583 if (tg == &root_task_group && rt_runtime == 0) in tg_set_rt_bandwidth()
2593 if (rt_runtime != RUNTIME_INF && rt_runtime > max_rt_runtime) in tg_set_rt_bandwidth()
2597 err = __rt_schedulable(tg, rt_period, rt_runtime); in tg_set_rt_bandwidth()
2603 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2609 rt_rq->rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2621 u64 rt_runtime, rt_period; in sched_group_set_rt_runtime() local
2624 rt_runtime = (u64)rt_runtime_us * NSEC_PER_USEC; in sched_group_set_rt_runtime()
2626 rt_runtime = RUNTIME_INF; in sched_group_set_rt_runtime()
2630 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_runtime()
2637 if (tg->rt_bandwidth.rt_runtime == RUNTIME_INF) in sched_group_rt_runtime()
2640 rt_runtime_us = tg->rt_bandwidth.rt_runtime; in sched_group_rt_runtime()
2647 u64 rt_runtime, rt_period; in sched_group_set_rt_period() local
2653 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2655 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_period()
2681 if (rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()
2698 rt_rq->rt_runtime = global_rt_runtime(); in sched_rt_global_constraints()
2723 def_rt_bandwidth.rt_runtime = global_rt_runtime(); in sched_rt_do_global()