Home
last modified time | relevance | path

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

/kernel/
Dpadata.c47 static void padata_free_pd(struct parallel_data *pd);
50 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index) in padata_index_to_cpu() argument
54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()
61 static int padata_cpu_hash(struct parallel_data *pd, unsigned int seq_nr) in padata_cpu_hash() argument
67 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash()
69 return padata_index_to_cpu(pd, cpu_index); in padata_cpu_hash()
172 struct parallel_data *pd; in padata_do_parallel() local
177 pd = rcu_dereference_bh(ps->pd); in padata_do_parallel()
183 if (!cpumask_test_cpu(*cb_cpu, pd->cpumask.cbcpu)) { in padata_do_parallel()
[all …]
Dgen_kheaders.sh69 done | cpio --quiet -L -pd $cpio_dir
/kernel/power/
Denergy_model.c34 static void em_debug_create_ps(struct em_perf_state *ps, struct dentry *pd) in em_debug_create_ps() argument
42 d = debugfs_create_dir(name, pd); in em_debug_create_ps()
59 struct em_perf_domain *pd = s->private; in em_debug_flags_show() local
61 seq_printf(s, "%#lx\n", pd->flags); in em_debug_flags_show()
106 static int em_create_perf_table(struct device *dev, struct em_perf_domain *pd, in em_create_perf_table() argument
185 pd->table = table; in em_create_perf_table()
186 pd->nr_perf_states = nr_states; in em_create_perf_table()
199 struct em_perf_domain *pd; in em_create_pd() local
212 pd = kzalloc(sizeof(*pd) + cpumask_size(), GFP_KERNEL); in em_create_pd()
213 if (!pd) in em_create_pd()
[all …]
/kernel/sched/
Dtopology.c268 static void free_pd(struct perf_domain *pd) in free_pd() argument
272 while (pd) { in free_pd()
273 tmp = pd->next; in free_pd()
274 kfree(pd); in free_pd()
275 pd = tmp; in free_pd()
279 static struct perf_domain *find_pd(struct perf_domain *pd, int cpu) in find_pd() argument
281 while (pd) { in find_pd()
282 if (cpumask_test_cpu(cpu, perf_domain_span(pd))) in find_pd()
283 return pd; in find_pd()
284 pd = pd->next; in find_pd()
[all …]
Dsched.h894 struct perf_domain __rcu *pd; member
3203 #define perf_domain_span(pd) (to_cpumask(((pd)->em_pd->cpus))) argument
3214 #define perf_domain_span(pd) NULL argument
Dfair.c7245 compute_energy(struct energy_env *eenv, struct perf_domain *pd, in compute_energy() argument
7254 return em_cpu_energy(pd->em_pd, max_util, busy_time, eenv->cpu_cap); in compute_energy()
7308 struct perf_domain *pd; in find_energy_efficient_cpu() local
7319 pd = rcu_dereference(rd->pd); in find_energy_efficient_cpu()
7320 if (!pd || READ_ONCE(rd->overutilized)) in find_energy_efficient_cpu()
7348 for (; pd; pd = pd->next) { in find_energy_efficient_cpu()
7357 cpumask_and(cpus, perf_domain_span(pd), cpu_online_mask); in find_energy_efficient_cpu()
7434 base_energy = compute_energy(&eenv, pd, cpus, p, -1); in find_energy_efficient_cpu()
7438 prev_delta = compute_energy(&eenv, pd, cpus, p, in find_energy_efficient_cpu()
7462 cur_delta = compute_energy(&eenv, pd, cpus, p, in find_energy_efficient_cpu()
[all …]