Lines Matching refs:rt_runtime

97 	rt_b->rt_runtime = runtime;  in init_rt_bandwidth()
128 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF) in start_rt_bandwidth()
159 rt_rq->rt_runtime = 0; in init_rt_rq()
273 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
540 return rt_rq->rt_runtime; in sched_rt_runtime()
660 return rt_rq->rt_runtime; in sched_rt_runtime()
725 rt_rq->rt_time < rt_b->rt_runtime); in sched_rt_bandwidth_account()
756 if (iter->rt_runtime == RUNTIME_INF) in do_balance_runtime()
763 diff = iter->rt_runtime - iter->rt_time; in do_balance_runtime()
766 if (rt_rq->rt_runtime + diff > rt_period) in do_balance_runtime()
767 diff = rt_period - rt_rq->rt_runtime; in do_balance_runtime()
768 iter->rt_runtime -= diff; in do_balance_runtime()
769 rt_rq->rt_runtime += diff; in do_balance_runtime()
770 if (rt_rq->rt_runtime == rt_period) { in do_balance_runtime()
805 if (rt_rq->rt_runtime == RUNTIME_INF || in __disable_runtime()
806 rt_rq->rt_runtime == rt_b->rt_runtime) in __disable_runtime()
815 want = rt_b->rt_runtime - rt_rq->rt_runtime; in __disable_runtime()
827 if (iter == rt_rq || iter->rt_runtime == RUNTIME_INF) in __disable_runtime()
832 diff = min_t(s64, iter->rt_runtime, want); in __disable_runtime()
833 iter->rt_runtime -= diff; in __disable_runtime()
836 iter->rt_runtime -= want; in __disable_runtime()
856 rt_rq->rt_runtime = RUNTIME_INF; in __disable_runtime()
882 rt_rq->rt_runtime = rt_b->rt_runtime; in __enable_runtime()
895 if (rt_rq->rt_time > rt_rq->rt_runtime) { in balance_runtime()
936 if (!sched_feat(RT_RUNTIME_SHARE) && rt_rq->rt_runtime != RUNTIME_INF) in do_sched_rt_period_timer()
937 rt_rq->rt_runtime = rt_b->rt_runtime; in do_sched_rt_period_timer()
952 runtime = rt_rq->rt_runtime; in do_sched_rt_period_timer()
984 if (!throttled && (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)) in do_sched_rt_period_timer()
1024 if (likely(rt_b->rt_runtime)) { in sched_rt_runtime_exceeded()
2778 u64 rt_runtime; member
2789 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2793 runtime = d->rt_runtime; in tg_rt_schedulable()
2806 tg->rt_bandwidth.rt_runtime && tg_has_rt_tasks(tg)) in tg_rt_schedulable()
2822 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2826 runtime = d->rt_runtime; in tg_rt_schedulable()
2845 .rt_runtime = runtime, in __rt_schedulable()
2856 u64 rt_period, u64 rt_runtime) in tg_set_rt_bandwidth() argument
2864 if (tg == &root_task_group && rt_runtime == 0) in tg_set_rt_bandwidth()
2874 if (rt_runtime != RUNTIME_INF && rt_runtime > max_rt_runtime) in tg_set_rt_bandwidth()
2878 err = __rt_schedulable(tg, rt_period, rt_runtime); in tg_set_rt_bandwidth()
2884 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2890 rt_rq->rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2902 u64 rt_runtime, rt_period; in sched_group_set_rt_runtime() local
2905 rt_runtime = (u64)rt_runtime_us * NSEC_PER_USEC; in sched_group_set_rt_runtime()
2907 rt_runtime = RUNTIME_INF; in sched_group_set_rt_runtime()
2911 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_runtime()
2918 if (tg->rt_bandwidth.rt_runtime == RUNTIME_INF) in sched_group_rt_runtime()
2921 rt_runtime_us = tg->rt_bandwidth.rt_runtime; in sched_group_rt_runtime()
2928 u64 rt_runtime, rt_period; in sched_group_set_rt_period() local
2934 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2936 return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); in sched_group_set_rt_period()
2964 if (rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()
2983 rt_rq->rt_runtime = global_rt_runtime(); in sched_rt_global_constraints()
3010 def_rt_bandwidth.rt_runtime = global_rt_runtime(); in sched_rt_do_global()