Searched refs:pd (Results 1 – 1 of 1) sorted by relevance
36 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index) in padata_index_to_cpu() argument40 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()42 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()47 static int padata_cpu_hash(struct parallel_data *pd) in padata_cpu_hash() argument56 spin_lock(&pd->seq_lock); in padata_cpu_hash()57 cpu_index = pd->seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash()58 pd->seq_nr++; in padata_cpu_hash()59 spin_unlock(&pd->seq_lock); in padata_cpu_hash()61 return padata_index_to_cpu(pd, cpu_index); in padata_cpu_hash()67 struct parallel_data *pd; in padata_parallel_worker() local[all …]