/kernel/sched/ |
D | cpudeadline.c | 39 static void cpudl_exchange(struct cpudl *cp, int a, int b) in cpudl_exchange() argument 41 int cpu_a = cp->elements[a].cpu, cpu_b = cp->elements[b].cpu; in cpudl_exchange() 43 swap(cp->elements[a].cpu, cp->elements[b].cpu); in cpudl_exchange() 44 swap(cp->elements[a].dl , cp->elements[b].dl ); in cpudl_exchange() 46 swap(cp->elements[cpu_a].idx, cp->elements[cpu_b].idx); in cpudl_exchange() 49 static void cpudl_heapify(struct cpudl *cp, int idx) in cpudl_heapify() argument 59 if ((l < cp->size) && dl_time_before(cp->elements[idx].dl, in cpudl_heapify() 60 cp->elements[l].dl)) in cpudl_heapify() 62 if ((r < cp->size) && dl_time_before(cp->elements[largest].dl, in cpudl_heapify() 63 cp->elements[r].dl)) in cpudl_heapify() [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 | 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); 30 #define cpupri_set(cp, cpu, pri) do { } while (0) argument
|
D | cpudeadline.h | 23 int cpudl_find(struct cpudl *cp, struct task_struct *p, 25 void cpudl_set(struct cpudl *cp, int cpu, u64 dl, int is_valid); 26 int cpudl_init(struct cpudl *cp); 27 void cpudl_cleanup(struct cpudl *cp); 29 #define cpudl_set(cp, cpu, dl) do { } while (0) argument
|
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 | 214 char *cp = strchr(e, '='); in kdbgetenv() local 215 return cp ? ++cp : ""; in kdbgetenv() 377 char *cp; in kdb_set() local 379 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set() 380 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set() 475 char *cp; in kdbgetaddrarg() local 497 cp = strpbrk(symname, "+-"); in kdbgetaddrarg() 498 if (cp != NULL) { in kdbgetaddrarg() 499 symbol = *cp; in kdbgetaddrarg() 500 *cp++ = '\0'; in kdbgetaddrarg() [all …]
|
/kernel/ |
D | cpuset.c | 548 struct cpuset *cp; in update_domain_attr_tree() local 552 cpuset_for_each_descendant_pre(cp, pos_css, root_cs) { in update_domain_attr_tree() 554 if (cpumask_empty(cp->cpus_allowed)) { in update_domain_attr_tree() 559 if (is_sched_load_balance(cp)) in update_domain_attr_tree() 560 update_domain_attr(dattr, cp); in update_domain_attr_tree() 622 struct cpuset *cp; /* scans q */ in generate_sched_domains() local 653 csa = kmalloc(nr_cpusets() * sizeof(cp), GFP_KERNEL); in generate_sched_domains() 659 cpuset_for_each_descendant_pre(cp, pos_css, &top_cpuset) { in generate_sched_domains() 660 if (cp == &top_cpuset) in generate_sched_domains() 670 if (!cpumask_empty(cp->cpus_allowed) && in generate_sched_domains() [all …]
|
/kernel/trace/ |
D | trace_kdb.c | 101 char *cp; in kdb_ftdump() local 107 skip_lines = simple_strtol(argv[1], &cp, 0); in kdb_ftdump() 108 if (*cp) in kdb_ftdump() 113 cpu_file = simple_strtol(argv[2], &cp, 0); in kdb_ftdump() 114 if (*cp || cpu_file >= NR_CPUS || cpu_file < 0 || in kdb_ftdump()
|
/kernel/rcu/ |
D | tree_plugin.h | 1846 static void print_cpu_stall_fast_no_hz(char *cp, int cpu) in print_cpu_stall_fast_no_hz() argument 1851 sprintf(cp, "last_accelerate: %04lx/%04lx, nonlazy_posted: %ld, %c%c", in print_cpu_stall_fast_no_hz() 1860 static void print_cpu_stall_fast_no_hz(char *cp, int cpu) in print_cpu_stall_fast_no_hz() argument 1862 *cp = '\0'; in print_cpu_stall_fast_no_hz()
|