Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 10 of 10) sorted by relevance

/kernel/sched/
Dcpudeadline.c34 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 …]
Dcpupri.c68 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 …]
Dcpudeadline.h24 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);
Dcpupri.h24 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);
Denergy.c51 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/
Dkdb_io.c205 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 …]
Dkdb_main.c242 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/
Dcpuset.c562 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/
Dtrace_kdb.c108 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/
Dtree_plugin.h1585 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()