Lines Matching refs:rt_runtime

91 	rt_rq->rt_runtime = 0;  in init_rt_rq()
128 rt_b->rt_runtime = runtime; in init_rt_bandwidth()
158 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF) in start_rt_bandwidth()
283 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
483 return rt_rq->rt_runtime; in sched_rt_runtime()
602 rt_rq->rt_time < rt_b->rt_runtime); in sched_rt_bandwidth_account()
632 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime()
639 diff = iter->rt_runtime - iter->rt_time; in do_balance_runtime()
642 if (rt_rq->rt_runtime + diff > rt_period) in do_balance_runtime()
643 diff = rt_period - rt_rq->rt_runtime; in do_balance_runtime()
644 iter->rt_runtime -= diff; in do_balance_runtime()
645 rt_rq->rt_runtime += diff; in do_balance_runtime()
646 if (rt_rq->rt_runtime == rt_period) { in do_balance_runtime()
681 if (rt_rq->rt_runtime == RUNTIME_INF || in __disable_runtime()
682 rt_rq->rt_runtime == rt_b->rt_runtime) in __disable_runtime()
691 want = rt_b->rt_runtime - rt_rq->rt_runtime; in __disable_runtime()
703 if (iter == rt_rq || iter->rt_runtime == RUNTIME_INF) in __disable_runtime()
708 diff = min_t(s64, iter->rt_runtime, want); in __disable_runtime()
709 iter->rt_runtime -= diff; in __disable_runtime()
712 iter->rt_runtime -= want; in __disable_runtime()
732 rt_rq->rt_runtime = RUNTIME_INF; in __disable_runtime()
758 rt_rq->rt_runtime = rt_b->rt_runtime; in __enable_runtime()
771 if (rt_rq->rt_time > rt_rq->rt_runtime) { in balance_runtime()
809 if (!sched_feat(RT_RUNTIME_SHARE) && rt_rq->rt_runtime != RUNTIME_INF) in do_sched_rt_period_timer()
810 rt_rq->rt_runtime = rt_b->rt_runtime; in do_sched_rt_period_timer()
825 runtime = rt_rq->rt_runtime; in do_sched_rt_period_timer()
857 if (!throttled && (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)) in do_sched_rt_period_timer()
885 if (likely(rt_b->rt_runtime)) { in sched_rt_runtime_exceeded()
2640 u64 rt_runtime; member
2651 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2655 runtime = d->rt_runtime; in tg_rt_schedulable()
2668 tg->rt_bandwidth.rt_runtime && tg_has_rt_tasks(tg)) in tg_rt_schedulable()
2687 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2691 runtime = d->rt_runtime; in tg_rt_schedulable()
2710 .rt_runtime = runtime, in __rt_schedulable()
2721 u64 rt_period, u64 rt_runtime) in tg_set_rt_bandwidth() argument
2729 if (tg == &root_task_group && rt_runtime == 0) in tg_set_rt_bandwidth()
2739 if (rt_runtime != RUNTIME_INF && rt_runtime > max_rt_runtime) in tg_set_rt_bandwidth()
2743 err = __rt_schedulable(tg, rt_period, rt_runtime); in tg_set_rt_bandwidth()
2749 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2755 rt_rq->rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2767 u64 rt_runtime, rt_period; in sched_group_set_rt_runtime() local
2770 rt_runtime = (u64)rt_runtime_us * NSEC_PER_USEC; in sched_group_set_rt_runtime()
2772 rt_runtime = RUNTIME_INF; in sched_group_set_rt_runtime()
2776 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_runtime()
2783 if (tg->rt_bandwidth.rt_runtime == RUNTIME_INF) in sched_group_rt_runtime()
2786 rt_runtime_us = tg->rt_bandwidth.rt_runtime; in sched_group_rt_runtime()
2793 u64 rt_runtime, rt_period; in sched_group_set_rt_period() local
2799 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2801 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_period()
2829 if (rt_group_sched_enabled() && rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()