Home
last modified time | relevance | path

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

/kernel/sched/
Dcpudeadline.c25 static void cpudl_heapify_down(struct cpudl *cp, int idx) in cpudl_heapify_down() argument
29 int orig_cpu = cp->elements[idx].cpu; in cpudl_heapify_down()
30 u64 orig_dl = cp->elements[idx].dl; in cpudl_heapify_down()
32 if (left_child(idx) >= cp->size) in cpudl_heapify_down()
44 if ((l < cp->size) && dl_time_before(orig_dl, in cpudl_heapify_down()
45 cp->elements[l].dl)) { in cpudl_heapify_down()
47 largest_dl = cp->elements[l].dl; in cpudl_heapify_down()
49 if ((r < cp->size) && dl_time_before(largest_dl, in cpudl_heapify_down()
50 cp->elements[r].dl)) in cpudl_heapify_down()
57 cp->elements[idx].cpu = cp->elements[largest].cpu; in cpudl_heapify_down()
[all …]
Dcpupri.c67 static inline int __cpupri_find(struct cpupri *cp, struct task_struct *p, in __cpupri_find() argument
70 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find()
121 int cpupri_find(struct cpupri *cp, struct task_struct *p, in cpupri_find() argument
124 return cpupri_find_fitness(cp, p, lowest_mask, NULL); in cpupri_find()
144 int cpupri_find_fitness(struct cpupri *cp, struct task_struct *p, in cpupri_find_fitness() argument
155 if (!__cpupri_find(cp, p, lowest_mask, idx)) in cpupri_find_fitness()
195 return cpupri_find(cp, p, lowest_mask); in cpupri_find_fitness()
211 void cpupri_set(struct cpupri *cp, int cpu, int newpri) in cpupri_set() argument
213 int *currpri = &cp->cpu_to_pri[cpu]; in cpupri_set()
231 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set()
[all …]
Dcpudeadline.h19 int cpudl_find(struct cpudl *cp, struct task_struct *p, struct cpumask *later_mask);
20 void cpudl_set(struct cpudl *cp, int cpu, u64 dl);
21 void cpudl_clear(struct cpudl *cp, int cpu);
22 int cpudl_init(struct cpudl *cp);
23 void cpudl_set_freecpu(struct cpudl *cp, int cpu);
24 void cpudl_clear_freecpu(struct cpudl *cp, int cpu);
25 void cpudl_cleanup(struct cpudl *cp);
Dcpupri.h21 int cpupri_find(struct cpupri *cp, struct task_struct *p,
23 int cpupri_find_fitness(struct cpupri *cp, struct task_struct *p,
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);
/kernel/debug/kdb/
Dkdb_io.c197 char *cp = buffer; in kdb_read() local
218 cp += len; in kdb_read()
220 cp--; in kdb_read()
223 lastchar = cp; in kdb_read()
224 *cp = '\0'; in kdb_read()
232 if (cp > buffer) { in kdb_read()
233 if (cp < lastchar) { in kdb_read()
234 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
235 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
238 --cp; in kdb_read()
[all …]
Dkdb_main.c264 char *cp = strchr(e, '='); in kdbgetenv() local
265 return cp ? ++cp : ""; in kdbgetenv()
487 char *cp; in kdb_set() local
489 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set()
490 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set()
554 char *cp; in kdbgetaddrarg() local
585 cp = strpbrk(symname, "+-"); in kdbgetaddrarg()
586 if (cp != NULL) { in kdbgetaddrarg()
587 symbol = *cp; in kdbgetaddrarg()
588 *cp++ = '\0'; in kdbgetaddrarg()
[all …]
/kernel/cgroup/
Dcpuset.c851 struct cpuset *cp; in update_domain_attr_tree() local
855 cpuset_for_each_descendant_pre(cp, pos_css, root_cs) { in update_domain_attr_tree()
857 if (cpumask_empty(cp->cpus_allowed)) { in update_domain_attr_tree()
862 if (is_sched_load_balance(cp)) in update_domain_attr_tree()
863 update_domain_attr(dattr, cp); in update_domain_attr_tree()
931 struct cpuset *cp; /* top-down scan of cpusets */ in generate_sched_domains() local
964 csa = kmalloc_array(nr_cpusets(), sizeof(cp), GFP_KERNEL); in generate_sched_domains()
972 cpuset_for_each_descendant_pre(cp, pos_css, &top_cpuset) { in generate_sched_domains()
973 if (cp == &top_cpuset) in generate_sched_domains()
986 if (!cpumask_empty(cp->cpus_allowed) && in generate_sched_domains()
[all …]
/kernel/trace/
Dtrace_kdb.c99 char *cp; in kdb_ftdump() local
107 skip_entries = 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/bpf/
Dsyscall.c1565 u32 cp, max_count; in generic_map_delete_batch() local
1588 for (cp = 0; cp < max_count; cp++) { in generic_map_delete_batch()
1590 if (copy_from_user(key, keys + cp * map->key_size, in generic_map_delete_batch()
1608 if (copy_to_user(&uattr->batch.count, &cp, sizeof(cp))) in generic_map_delete_batch()
1623 u32 value_size, cp, max_count; in generic_map_update_batch() local
1657 for (cp = 0; cp < max_count; cp++) { in generic_map_update_batch()
1659 if (copy_from_user(key, keys + cp * map->key_size, in generic_map_update_batch()
1661 copy_from_user(value, values + cp * value_size, value_size)) in generic_map_update_batch()
1672 if (copy_to_user(&uattr->batch.count, &cp, sizeof(cp))) in generic_map_update_batch()
1693 u32 value_size, cp, max_count; in generic_map_lookup_batch() local
[all …]
/kernel/
Dsysctl.c305 static int strtoul_lenient(const char *cp, char **endp, unsigned int base, in strtoul_lenient() argument
311 cp = _parse_integer_fixup_radix(cp, &base); in strtoul_lenient()
312 rv = _parse_integer(cp, base, &result); in strtoul_lenient()
316 cp += rv; in strtoul_lenient()
319 *endp = (char *)cp; in strtoul_lenient()