Lines Matching defs:rt_b
257 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu)
259 return container_of(rt_b, struct task_group, rt_bandwidth)->rt_rq[cpu];
311 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu)
329 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
336 raw_spin_lock(&rt_b->rt_runtime_lock);
337 rt_period = ktime_to_ns(rt_b->rt_period);
339 struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i);
374 raw_spin_unlock(&rt_b->rt_runtime_lock);
391 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
395 raw_spin_lock(&rt_b->rt_runtime_lock);
403 rt_rq->rt_runtime == rt_b->rt_runtime)
412 want = rt_b->rt_runtime - rt_rq->rt_runtime;
418 struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i);
455 raw_spin_unlock(&rt_b->rt_runtime_lock);
479 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
481 raw_spin_lock(&rt_b->rt_runtime_lock);
483 rt_rq->rt_runtime = rt_b->rt_runtime;
487 raw_spin_unlock(&rt_b->rt_runtime_lock);
519 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun)
524 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)
530 struct rt_rq *rt_rq = sched_rt_period_rt_rq(rt_b, i);