Home
last modified time | relevance | path

Searched refs:dl_b (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/kernel/sched/
Ddeadline.c53 void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) in init_dl_bandwidth() argument
55 raw_spin_lock_init(&dl_b->dl_runtime_lock); in init_dl_bandwidth()
56 dl_b->dl_period = period; in init_dl_bandwidth()
57 dl_b->dl_runtime = runtime; in init_dl_bandwidth()
60 void init_dl_bw(struct dl_bw *dl_b) in init_dl_bw() argument
62 raw_spin_lock_init(&dl_b->lock); in init_dl_bw()
65 dl_b->bw = -1; in init_dl_bw()
67 dl_b->bw = to_ratio(global_rt_period(), global_rt_runtime()); in init_dl_bw()
69 dl_b->total_bw = 0; in init_dl_bw()
1243 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_dead_dl() local
[all …]
Dsched.h192 void __dl_clear(struct dl_bw *dl_b, u64 tsk_bw) in __dl_clear() argument
194 dl_b->total_bw -= tsk_bw; in __dl_clear()
198 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw) in __dl_add() argument
200 dl_b->total_bw += tsk_bw; in __dl_add()
204 bool __dl_overflow(struct dl_bw *dl_b, int cpus, u64 old_bw, u64 new_bw) in __dl_overflow() argument
206 return dl_b->bw != -1 && in __dl_overflow()
207 dl_b->bw * cpus < dl_b->total_bw - old_bw + new_bw; in __dl_overflow()
1306 extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
Dcore.c2329 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in dl_overflow() local
2343 raw_spin_lock(&dl_b->lock); in dl_overflow()
2346 !__dl_overflow(dl_b, cpus, 0, new_bw)) { in dl_overflow()
2347 __dl_add(dl_b, new_bw); in dl_overflow()
2350 !__dl_overflow(dl_b, cpus, p->dl.dl_bw, new_bw)) { in dl_overflow()
2351 __dl_clear(dl_b, p->dl.dl_bw); in dl_overflow()
2352 __dl_add(dl_b, new_bw); in dl_overflow()
2355 __dl_clear(dl_b, p->dl.dl_bw); in dl_overflow()
2358 raw_spin_unlock(&dl_b->lock); in dl_overflow()
2363 extern void init_dl_bw(struct dl_bw *dl_b);
[all …]