Home
last modified time | relevance | path

Searched refs:pd (Results 1 – 6 of 6) sorted by relevance

/kernel/
Dpadata.c38 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index) in padata_index_to_cpu() argument
42 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
44 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()
49 static int padata_cpu_hash(struct parallel_data *pd, unsigned int seq_nr) in padata_cpu_hash() argument
55 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash()
57 return padata_index_to_cpu(pd, cpu_index); in padata_cpu_hash()
106 struct parallel_data *pd; in padata_do_parallel() local
110 pd = rcu_dereference_bh(pinst->pd); in padata_do_parallel()
116 if (!cpumask_test_cpu(*cb_cpu, pd->cpumask.cbcpu)) { in padata_do_parallel()
117 if (!cpumask_weight(pd->cpumask.cbcpu)) in padata_do_parallel()
[all …]
Dgen_kheaders.sh61 done | cpio --quiet -pd $cpio_dir
68 done | cpio --quiet -pd $cpio_dir >/dev/null 2>&1
/kernel/power/
Denergy_model.c30 static void em_debug_create_cs(struct em_cap_state *cs, struct dentry *pd) in em_debug_create_cs() argument
38 d = debugfs_create_dir(name, pd); in em_debug_create_cs()
52 static void em_debug_create_pd(struct em_perf_domain *pd, int cpu) in em_debug_create_pd() argument
63 debugfs_create_file("cpus", 0444, d, pd->cpus, &em_debug_cpus_fops); in em_debug_create_pd()
66 for (i = 0; i < pd->nr_cap_states; i++) in em_debug_create_pd()
67 em_debug_create_cs(&pd->table[i], d); in em_debug_create_pd()
79 static void em_debug_create_pd(struct em_perf_domain *pd, int cpu) {} in em_debug_create_pd() argument
88 struct em_perf_domain *pd; in em_create_pd() local
94 pd = kzalloc(sizeof(*pd) + cpumask_size(), GFP_KERNEL); in em_create_pd()
95 if (!pd) in em_create_pd()
[all …]
/kernel/sched/
Dtopology.c235 static void free_pd(struct perf_domain *pd) in free_pd() argument
239 while (pd) { in free_pd()
240 tmp = pd->next; in free_pd()
241 kfree(pd); in free_pd()
242 pd = tmp; in free_pd()
246 static struct perf_domain *find_pd(struct perf_domain *pd, int cpu) in find_pd() argument
248 while (pd) { in find_pd()
249 if (cpumask_test_cpu(cpu, perf_domain_span(pd))) in find_pd()
250 return pd; in find_pd()
251 pd = pd->next; in find_pd()
[all …]
Dsched.h793 struct perf_domain __rcu *pd; member
2493 #define perf_domain_span(pd) (to_cpumask(((pd)->em_pd->cpus))) argument
2504 #define perf_domain_span(pd) NULL argument
Dfair.c6266 compute_energy(struct task_struct *p, int dst_cpu, struct perf_domain *pd) in compute_energy() argument
6268 struct cpumask *pd_mask = perf_domain_span(pd); in compute_energy()
6307 return em_pd_energy(pd->em_pd, max_util, sum_util); in compute_energy()
6361 struct perf_domain *pd; in find_energy_efficient_cpu() local
6364 pd = rcu_dereference(rd->pd); in find_energy_efficient_cpu()
6365 if (!pd || READ_ONCE(rd->overutilized)) in find_energy_efficient_cpu()
6393 for (; pd; pd = pd->next) { in find_energy_efficient_cpu()
6399 base_energy_pd = compute_energy(p, -1, pd); in find_energy_efficient_cpu()
6402 for_each_cpu_and(cpu, perf_domain_span(pd), sched_domain_span(sd)) { in find_energy_efficient_cpu()
6423 prev_delta = compute_energy(p, prev_cpu, pd); in find_energy_efficient_cpu()
[all …]