Lines Matching refs:rt_bandwidth

99 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun);
103 struct rt_bandwidth *rt_b = in sched_rt_period_timer()
104 container_of(timer, struct rt_bandwidth, rt_period_timer); in sched_rt_period_timer()
125 void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime) in init_rt_bandwidth()
136 static inline void do_start_rt_bandwidth(struct rt_bandwidth *rt_b) in do_start_rt_bandwidth()
156 static void start_rt_bandwidth(struct rt_bandwidth *rt_b) in start_rt_bandwidth()
164 static void destroy_rt_bandwidth(struct rt_bandwidth *rt_b) in destroy_rt_bandwidth()
205 destroy_rt_bandwidth(&tg->rt_bandwidth); in unregister_rt_sched_group()
269 init_rt_bandwidth(&tg->rt_bandwidth, ktime_to_ns(global_rt_period()), 0); in alloc_rt_sched_group()
283 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
488 return ktime_to_ns(rt_rq->tg->rt_bandwidth.rt_period); in sched_rt_period()
587 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq()
589 return container_of(rt_b, struct task_group, rt_bandwidth)->rt_rq[cpu]; in sched_rt_period_rt_rq()
592 static inline struct rt_bandwidth *sched_rt_bandwidth(struct rt_rq *rt_rq) in sched_rt_bandwidth()
594 return &rt_rq->tg->rt_bandwidth; in sched_rt_bandwidth()
599 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in sched_rt_bandwidth_account()
610 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in do_balance_runtime()
670 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in __disable_runtime()
754 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in __enable_runtime()
778 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun) in do_sched_rt_period_timer()
794 if (rt_b == &root_task_group.rt_bandwidth) in do_sched_rt_period_timer()
879 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in sched_rt_runtime_exceeded()
948 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq()
1125 start_rt_bandwidth(&rt_rq->tg->rt_bandwidth); in inc_rt_group()
2650 period = ktime_to_ns(tg->rt_bandwidth.rt_period); in tg_rt_schedulable()
2651 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2668 tg->rt_bandwidth.rt_runtime && tg_has_rt_tasks(tg)) in tg_rt_schedulable()
2686 period = ktime_to_ns(child->rt_bandwidth.rt_period); in tg_rt_schedulable()
2687 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2747 raw_spin_lock_irq(&tg->rt_bandwidth.rt_runtime_lock); in tg_set_rt_bandwidth()
2748 tg->rt_bandwidth.rt_period = ns_to_ktime(rt_period); in tg_set_rt_bandwidth()
2749 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2758 raw_spin_unlock_irq(&tg->rt_bandwidth.rt_runtime_lock); in tg_set_rt_bandwidth()
2769 rt_period = ktime_to_ns(tg->rt_bandwidth.rt_period); 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()
2799 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2808 rt_period_us = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_rt_period()
2829 if (rt_group_sched_enabled() && rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()