Searched refs:dl_b (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/kernel/sched/ |
D | deadline.c | 276 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_non_contending() local 280 raw_spin_lock(&dl_b->lock); in task_non_contending() 281 __dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in task_non_contending() 283 raw_spin_unlock(&dl_b->lock); in task_non_contending() 338 void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) in init_dl_bandwidth() argument 340 raw_spin_lock_init(&dl_b->dl_runtime_lock); in init_dl_bandwidth() 341 dl_b->dl_period = period; in init_dl_bandwidth() 342 dl_b->dl_runtime = runtime; in init_dl_bandwidth() 345 void init_dl_bw(struct dl_bw *dl_b) in init_dl_bw() argument 347 raw_spin_lock_init(&dl_b->lock); in init_dl_bw() [all …]
|
D | sched.h | 284 static inline void __dl_update(struct dl_bw *dl_b, s64 bw); 287 void __dl_sub(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_sub() argument 289 dl_b->total_bw -= tsk_bw; in __dl_sub() 290 __dl_update(dl_b, (s32)tsk_bw / cpus); in __dl_sub() 294 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_add() argument 296 dl_b->total_bw += tsk_bw; in __dl_add() 297 __dl_update(dl_b, -((s32)tsk_bw / cpus)); in __dl_add() 301 bool __dl_overflow(struct dl_bw *dl_b, int cpus, u64 old_bw, u64 new_bw) in __dl_overflow() argument 303 return dl_b->bw != -1 && in __dl_overflow() 304 dl_b->bw * cpus < dl_b->total_bw - old_bw + new_bw; in __dl_overflow() [all …]
|