Home
last modified time | relevance | path

Searched refs:rt_b (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/kernel/
Dsched_rt.c269 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq() argument
271 return container_of(rt_b, struct task_group, rt_bandwidth)->rt_rq[cpu]; in sched_rt_period_rt_rq()
331 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq() argument
349 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in do_balance_runtime() local
356 raw_spin_lock(&rt_b->rt_runtime_lock); in do_balance_runtime()
357 rt_period = ktime_to_ns(rt_b->rt_period); in do_balance_runtime()
359 struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i); in do_balance_runtime()
394 raw_spin_unlock(&rt_b->rt_runtime_lock); in do_balance_runtime()
411 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq); in __disable_runtime() local
415 raw_spin_lock(&rt_b->rt_runtime_lock); in __disable_runtime()
[all …]
Dsched.c155 static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun);
159 struct rt_bandwidth *rt_b = in sched_rt_period_timer() local
167 overrun = hrtimer_forward(timer, now, rt_b->rt_period); in sched_rt_period_timer()
172 idle = do_sched_rt_period_timer(rt_b, overrun); in sched_rt_period_timer()
179 void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime) in init_rt_bandwidth() argument
181 rt_b->rt_period = ns_to_ktime(period); in init_rt_bandwidth()
182 rt_b->rt_runtime = runtime; in init_rt_bandwidth()
184 raw_spin_lock_init(&rt_b->rt_runtime_lock); in init_rt_bandwidth()
186 hrtimer_init(&rt_b->rt_period_timer, in init_rt_bandwidth()
188 rt_b->rt_period_timer.function = sched_rt_period_timer; in init_rt_bandwidth()
[all …]