/kernel/sched/ |
D | cpudeadline.c | 34 static void cpudl_heapify_down(struct cpudl *cp, int idx) in cpudl_heapify_down() argument 38 int orig_cpu = cp->elements[idx].cpu; in cpudl_heapify_down() 39 u64 orig_dl = cp->elements[idx].dl; in cpudl_heapify_down() 41 if (left_child(idx) >= cp->size) in cpudl_heapify_down() 52 if ((l < cp->size) && dl_time_before(orig_dl, in cpudl_heapify_down() 53 cp->elements[l].dl)) { in cpudl_heapify_down() 55 largest_dl = cp->elements[l].dl; in cpudl_heapify_down() 57 if ((r < cp->size) && dl_time_before(largest_dl, in cpudl_heapify_down() 58 cp->elements[r].dl)) in cpudl_heapify_down() 65 cp->elements[idx].cpu = cp->elements[largest].cpu; in cpudl_heapify_down() [all …]
|
D | cpupri.c | 68 int cpupri_find(struct cpupri *cp, struct task_struct *p, in cpupri_find() argument 77 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in cpupri_find() 140 void cpupri_set(struct cpupri *cp, int cpu, int newpri) in cpupri_set() argument 142 int *currpri = &cp->cpu_to_pri[cpu]; in cpupri_set() 160 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set() 173 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() 208 int cpupri_init(struct cpupri *cp) in cpupri_init() argument 212 memset(cp, 0, sizeof(*cp)); in cpupri_init() 215 struct cpupri_vec *vec = &cp->pri_to_cpu[i]; in cpupri_init() 222 cp->cpu_to_pri = kcalloc(nr_cpu_ids, sizeof(int), GFP_KERNEL); in cpupri_init() [all …]
|
D | cpudeadline.h | 24 int cpudl_find(struct cpudl *cp, struct task_struct *p, 26 void cpudl_set(struct cpudl *cp, int cpu, u64 dl); 27 void cpudl_clear(struct cpudl *cp, int cpu); 28 int cpudl_init(struct cpudl *cp); 29 void cpudl_set_freecpu(struct cpudl *cp, int cpu); 30 void cpudl_clear_freecpu(struct cpudl *cp, int cpu); 31 void cpudl_cleanup(struct cpudl *cp);
|
D | cpupri.h | 24 int cpupri_find(struct cpupri *cp, 26 void cpupri_set(struct cpupri *cp, int cpu, int pri); 27 int cpupri_init(struct cpupri *cp); 28 void cpupri_cleanup(struct cpupri *cp);
|
D | energy.c | 51 struct device_node *cn, *cp; in init_sched_energy_costs() local 72 cp = of_parse_phandle(cn, "sched-energy-costs", sd_level); in init_sched_energy_costs() 73 if (!cp) in init_sched_energy_costs() 76 prop = of_find_property(cp, "busy-cost-data", NULL); in init_sched_energy_costs() 98 prop = of_find_property(cp, "idle-cost-data", NULL); in init_sched_energy_costs()
|
/kernel/debug/kdb/ |
D | kdb_io.c | 205 char *cp = buffer; in kdb_read() local 226 cp += len; in kdb_read() 228 cp--; in kdb_read() 231 lastchar = cp; in kdb_read() 232 *cp = '\0'; in kdb_read() 245 if (cp > buffer) { in kdb_read() 246 if (cp < lastchar) { in kdb_read() 247 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read() 248 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read() 251 --cp; in kdb_read() [all …]
|
D | kdb_main.c | 242 char *cp = strchr(e, '='); in kdbgetenv() local 243 return cp ? ++cp : ""; in kdbgetenv() 405 char *cp; in kdb_set() local 407 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set() 408 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set() 503 char *cp; in kdbgetaddrarg() local 534 cp = strpbrk(symname, "+-"); in kdbgetaddrarg() 535 if (cp != NULL) { in kdbgetaddrarg() 536 symbol = *cp; in kdbgetaddrarg() 537 *cp++ = '\0'; in kdbgetaddrarg() [all …]
|
/kernel/ |
D | cpuset.c | 562 struct cpuset *cp; in update_domain_attr_tree() local 566 cpuset_for_each_descendant_pre(cp, pos_css, root_cs) { in update_domain_attr_tree() 568 if (cpumask_empty(cp->cpus_allowed)) { in update_domain_attr_tree() 573 if (is_sched_load_balance(cp)) in update_domain_attr_tree() 574 update_domain_attr(dattr, cp); in update_domain_attr_tree() 636 struct cpuset *cp; /* scans q */ in generate_sched_domains() local 673 csa = kmalloc(nr_cpusets() * sizeof(cp), GFP_KERNEL); in generate_sched_domains() 679 cpuset_for_each_descendant_pre(cp, pos_css, &top_cpuset) { in generate_sched_domains() 680 if (cp == &top_cpuset) in generate_sched_domains() 690 if (!cpumask_empty(cp->cpus_allowed) && in generate_sched_domains() [all …]
|
/kernel/trace/ |
D | trace_kdb.c | 108 char *cp; in kdb_ftdump() local 114 skip_lines = simple_strtol(argv[1], &cp, 0); in kdb_ftdump() 115 if (*cp) in kdb_ftdump() 120 cpu_file = simple_strtol(argv[2], &cp, 0); in kdb_ftdump() 121 if (*cp || cpu_file >= NR_CPUS || cpu_file < 0 || in kdb_ftdump()
|
/kernel/rcu/ |
D | tree_plugin.h | 1585 static void print_cpu_stall_fast_no_hz(char *cp, int cpu) in print_cpu_stall_fast_no_hz() argument 1590 sprintf(cp, "last_accelerate: %04lx/%04lx, nonlazy_posted: %ld, %c%c", in print_cpu_stall_fast_no_hz() 1599 static void print_cpu_stall_fast_no_hz(char *cp, int cpu) in print_cpu_stall_fast_no_hz() argument 1601 *cp = '\0'; in print_cpu_stall_fast_no_hz()
|