Lines Matching refs:rt_bandwidth

13 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun);
15 struct rt_bandwidth def_rt_bandwidth;
19 struct rt_bandwidth *rt_b = in sched_rt_period_timer()
20 container_of(timer, struct rt_bandwidth, rt_period_timer); in sched_rt_period_timer()
41 void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime) in init_rt_bandwidth()
53 static void start_rt_bandwidth(struct rt_bandwidth *rt_b) in start_rt_bandwidth()
106 static void destroy_rt_bandwidth(struct rt_bandwidth *rt_b) in destroy_rt_bandwidth()
143 destroy_rt_bandwidth(&tg->rt_bandwidth); in free_rt_sched_group()
196 init_rt_bandwidth(&tg->rt_bandwidth, in alloc_rt_sched_group()
211 rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; in alloc_rt_sched_group()
452 return ktime_to_ns(rt_rq->tg->rt_bandwidth.rt_period); in sched_rt_period()
553 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq()
555 return container_of(rt_b, struct task_group, rt_bandwidth)->rt_rq[cpu]; in sched_rt_period_rt_rq()
558 static inline struct rt_bandwidth *sched_rt_bandwidth(struct rt_rq *rt_rq) in sched_rt_bandwidth()
560 return &rt_rq->tg->rt_bandwidth; in sched_rt_bandwidth()
615 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq()
620 static inline struct rt_bandwidth *sched_rt_bandwidth(struct rt_rq *rt_rq) in sched_rt_bandwidth()
629 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in sched_rt_bandwidth_account()
641 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in do_balance_runtime()
701 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in __disable_runtime()
785 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in __enable_runtime()
812 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun) in do_sched_rt_period_timer()
828 if (rt_b == &root_task_group.rt_bandwidth) in do_sched_rt_period_timer()
924 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in sched_rt_runtime_exceeded()
1131 start_rt_bandwidth(&rt_rq->tg->rt_bandwidth); in inc_rt_group()
2431 period = ktime_to_ns(tg->rt_bandwidth.rt_period); in tg_rt_schedulable()
2432 runtime = tg->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2463 period = ktime_to_ns(child->rt_bandwidth.rt_period); in tg_rt_schedulable()
2464 runtime = child->rt_bandwidth.rt_runtime; in tg_rt_schedulable()
2519 raw_spin_lock_irq(&tg->rt_bandwidth.rt_runtime_lock); in tg_set_rt_bandwidth()
2520 tg->rt_bandwidth.rt_period = ns_to_ktime(rt_period); in tg_set_rt_bandwidth()
2521 tg->rt_bandwidth.rt_runtime = rt_runtime; in tg_set_rt_bandwidth()
2530 raw_spin_unlock_irq(&tg->rt_bandwidth.rt_runtime_lock); in tg_set_rt_bandwidth()
2542 rt_period = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_set_rt_runtime()
2556 if (tg->rt_bandwidth.rt_runtime == RUNTIME_INF) in sched_group_rt_runtime()
2559 rt_runtime_us = tg->rt_bandwidth.rt_runtime; in sched_group_rt_runtime()
2572 rt_runtime = tg->rt_bandwidth.rt_runtime; in sched_group_set_rt_period()
2581 rt_period_us = ktime_to_ns(tg->rt_bandwidth.rt_period); in sched_group_rt_period()
2602 if (rt_task(tsk) && tg->rt_bandwidth.rt_runtime == 0) in sched_rt_can_attach()