Lines Matching refs:rt_runtime

90 	rt_rq->rt_runtime = 0;  in init_rt_rq()
126 rt_b->rt_runtime = runtime; in init_rt_bandwidth()
156 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF) in start_rt_bandwidth()
268 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
488 return rt_rq->rt_runtime; in sched_rt_runtime()
609 rt_rq->rt_time < rt_b->rt_runtime); in sched_rt_bandwidth_account()
640 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime()
647 diff = iter->rt_runtime - iter->rt_time; in do_balance_runtime()
650 if (rt_rq->rt_runtime + diff > rt_period) in do_balance_runtime()
651 diff = rt_period - rt_rq->rt_runtime; in do_balance_runtime()
652 iter->rt_runtime -= diff; in do_balance_runtime()
653 rt_rq->rt_runtime += diff; in do_balance_runtime()
654 if (rt_rq->rt_runtime == rt_period) { in do_balance_runtime()
689 if (rt_rq->rt_runtime == RUNTIME_INF || in __disable_runtime()
690 rt_rq->rt_runtime == rt_b->rt_runtime) in __disable_runtime()
699 want = rt_b->rt_runtime - rt_rq->rt_runtime; in __disable_runtime()
711 if (iter == rt_rq || iter->rt_runtime == RUNTIME_INF) in __disable_runtime()
716 diff = min_t(s64, iter->rt_runtime, want); in __disable_runtime()
717 iter->rt_runtime -= diff; in __disable_runtime()
720 iter->rt_runtime -= want; in __disable_runtime()
740 rt_rq->rt_runtime = RUNTIME_INF; in __disable_runtime()
766 rt_rq->rt_runtime = rt_b->rt_runtime; in __enable_runtime()
779 if (rt_rq->rt_time > rt_rq->rt_runtime) { in balance_runtime()
820 if (!sched_feat(RT_RUNTIME_SHARE) && rt_rq->rt_runtime != RUNTIME_INF) in do_sched_rt_period_timer()
821 rt_rq->rt_runtime = rt_b->rt_runtime; in do_sched_rt_period_timer()
836 runtime = rt_rq->rt_runtime; in do_sched_rt_period_timer()
868 if (!throttled && (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)) in do_sched_rt_period_timer()
896 if (likely(rt_b->rt_runtime)) { in sched_rt_runtime_exceeded()
2685 u64 rt_runtime; member
2696 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2700 runtime = d->rt_runtime; in tg_rt_schedulable()
2713 tg->rt_bandwidth.rt_runtime && tg_has_rt_tasks(tg)) in tg_rt_schedulable()
2729 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2733 runtime = d->rt_runtime; in tg_rt_schedulable()
2752 .rt_runtime = runtime, in __rt_schedulable()
2763 u64 rt_period, u64 rt_runtime) in tg_set_rt_bandwidth() argument
2771 if (tg == &root_task_group && rt_runtime == 0) in tg_set_rt_bandwidth()
2781 if (rt_runtime != RUNTIME_INF && rt_runtime > max_rt_runtime) in tg_set_rt_bandwidth()
2785 err = __rt_schedulable(tg, rt_period, rt_runtime); in tg_set_rt_bandwidth()
2791 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2797 rt_rq->rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2809 u64 rt_runtime, rt_period; in sched_group_set_rt_runtime() local
2812 rt_runtime = (u64)rt_runtime_us * NSEC_PER_USEC; in sched_group_set_rt_runtime()
2814 rt_runtime = RUNTIME_INF; in sched_group_set_rt_runtime()
2818 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_runtime()
2825 if (tg->rt_bandwidth.rt_runtime == RUNTIME_INF) in sched_group_rt_runtime()
2828 rt_runtime_us = tg->rt_bandwidth.rt_runtime; in sched_group_rt_runtime()
2835 u64 rt_runtime, rt_period; in sched_group_set_rt_period() local
2841 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2843 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_period()
2871 if (rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()