Searched refs:dl_b (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/kernel/sched/ |
D | deadline.c | 53 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() 1175 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_dead_dl() local [all …]
|
D | sched.h | 181 void __dl_clear(struct dl_bw *dl_b, u64 tsk_bw) in __dl_clear() argument 183 dl_b->total_bw -= tsk_bw; in __dl_clear() 187 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw) in __dl_add() argument 189 dl_b->total_bw += tsk_bw; in __dl_add() 193 bool __dl_overflow(struct dl_bw *dl_b, int cpus, u64 old_bw, u64 new_bw) in __dl_overflow() argument 195 return dl_b->bw != -1 && in __dl_overflow() 196 dl_b->bw * cpus < dl_b->total_bw - old_bw + new_bw; in __dl_overflow() 1297 extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
|
D | core.c | 2034 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in dl_overflow() local 2048 raw_spin_lock(&dl_b->lock); in dl_overflow() 2051 !__dl_overflow(dl_b, cpus, 0, new_bw)) { in dl_overflow() 2052 __dl_add(dl_b, new_bw); in dl_overflow() 2055 !__dl_overflow(dl_b, cpus, p->dl.dl_bw, new_bw)) { in dl_overflow() 2056 __dl_clear(dl_b, p->dl.dl_bw); in dl_overflow() 2057 __dl_add(dl_b, new_bw); in dl_overflow() 2060 __dl_clear(dl_b, p->dl.dl_bw); in dl_overflow() 2063 raw_spin_unlock(&dl_b->lock); in dl_overflow() 2068 extern void init_dl_bw(struct dl_bw *dl_b); [all …]
|