Searched refs:dl_b (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/kernel/sched/ |
H A D | deadline.c | 53 void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) init_dl_bandwidth() argument 55 raw_spin_lock_init(&dl_b->dl_runtime_lock); init_dl_bandwidth() 56 dl_b->dl_period = period; init_dl_bandwidth() 57 dl_b->dl_runtime = runtime; init_dl_bandwidth() 60 void init_dl_bw(struct dl_bw *dl_b) init_dl_bw() argument 62 raw_spin_lock_init(&dl_b->lock); init_dl_bw() 65 dl_b->bw = -1; init_dl_bw() 67 dl_b->bw = to_ratio(global_rt_period(), global_rt_runtime()); init_dl_bw() 69 dl_b->total_bw = 0; init_dl_bw() 1175 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); task_dead_dl() local 1180 raw_spin_lock_irq(&dl_b->lock); task_dead_dl() 1182 dl_b->total_bw -= p->dl.dl_bw; task_dead_dl() 1183 raw_spin_unlock_irq(&dl_b->lock); task_dead_dl()
|
H A D | sched.h | 181 void __dl_clear(struct dl_bw *dl_b, u64 tsk_bw) __dl_clear() argument 183 dl_b->total_bw -= tsk_bw; __dl_clear() 187 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw) __dl_add() argument 189 dl_b->total_bw += tsk_bw; __dl_add() 193 bool __dl_overflow(struct dl_bw *dl_b, int cpus, u64 old_bw, u64 new_bw) __dl_overflow() argument 195 return dl_b->bw != -1 && __dl_overflow() 196 dl_b->bw * cpus < dl_b->total_bw - old_bw + new_bw; __dl_overflow() 1297 extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
|
H A D | core.c | 2034 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); dl_overflow() local 2048 raw_spin_lock(&dl_b->lock); dl_overflow() 2051 !__dl_overflow(dl_b, cpus, 0, new_bw)) { dl_overflow() 2052 __dl_add(dl_b, new_bw); dl_overflow() 2055 !__dl_overflow(dl_b, cpus, p->dl.dl_bw, new_bw)) { dl_overflow() 2056 __dl_clear(dl_b, p->dl.dl_bw); dl_overflow() 2057 __dl_add(dl_b, new_bw); dl_overflow() 2060 __dl_clear(dl_b, p->dl.dl_bw); dl_overflow() 2063 raw_spin_unlock(&dl_b->lock); dl_overflow() 2068 extern void init_dl_bw(struct dl_bw *dl_b); 4698 struct dl_bw *dl_b; task_can_attach() local 4704 dl_b = dl_bw_of(dest_cpu); task_can_attach() 4705 raw_spin_lock_irqsave(&dl_b->lock, flags); task_can_attach() 4707 overflow = __dl_overflow(dl_b, cpus, 0, p->dl.dl_bw); task_can_attach() 4717 __dl_add(dl_b, p->dl.dl_bw); task_can_attach() 4719 raw_spin_unlock_irqrestore(&dl_b->lock, flags); task_can_attach() 7013 struct dl_bw *dl_b; cpuset_cpu_inactive() local 7020 dl_b = dl_bw_of(cpu); cpuset_cpu_inactive() 7022 raw_spin_lock_irqsave(&dl_b->lock, flags); cpuset_cpu_inactive() 7024 overflow = __dl_overflow(dl_b, cpus, 0, 0); cpuset_cpu_inactive() 7025 raw_spin_unlock_irqrestore(&dl_b->lock, flags); cpuset_cpu_inactive() 7820 struct dl_bw *dl_b; sched_dl_global_validate() local 7835 dl_b = dl_bw_of(cpu); for_each_possible_cpu() 7837 raw_spin_lock_irqsave(&dl_b->lock, flags); for_each_possible_cpu() 7838 if (new_bw < dl_b->total_bw) for_each_possible_cpu() 7840 raw_spin_unlock_irqrestore(&dl_b->lock, flags); for_each_possible_cpu() 7854 struct dl_bw *dl_b; sched_dl_do_global() local 7869 dl_b = dl_bw_of(cpu); for_each_possible_cpu() 7871 raw_spin_lock_irqsave(&dl_b->lock, flags); for_each_possible_cpu() 7872 dl_b->bw = new_bw; for_each_possible_cpu() 7873 raw_spin_unlock_irqrestore(&dl_b->lock, flags); for_each_possible_cpu()
|
Completed in 158 milliseconds