aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/padata.h2
-rw-r--r--kernel/padata.c35
2 files changed, 0 insertions, 37 deletions
diff --git a/include/linux/padata.h b/include/linux/padata.h
index 43db792f44dd..bdcd1e9eacea 100644
--- a/include/linux/padata.h
+++ b/include/linux/padata.h
@@ -176,8 +176,6 @@ extern void padata_free(struct padata_instance *pinst);
176extern int padata_do_parallel(struct padata_instance *pinst, 176extern int padata_do_parallel(struct padata_instance *pinst,
177 struct padata_priv *padata, int cb_cpu); 177 struct padata_priv *padata, int cb_cpu);
178extern void padata_do_serial(struct padata_priv *padata); 178extern void padata_do_serial(struct padata_priv *padata);
179extern int padata_get_cpumask(struct padata_instance *pinst,
180 int cpumask_type, struct cpumask *out_mask);
181extern int padata_set_cpumask(struct padata_instance *pinst, int cpumask_type, 179extern int padata_set_cpumask(struct padata_instance *pinst, int cpumask_type,
182 cpumask_var_t cpumask); 180 cpumask_var_t cpumask);
183extern int padata_set_cpumasks(struct padata_instance *pinst, 181extern int padata_set_cpumasks(struct padata_instance *pinst,
diff --git a/kernel/padata.c b/kernel/padata.c
index 1c8c1d1d301d..fd4679266ede 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -589,41 +589,6 @@ static bool padata_validate_cpumask(struct padata_instance *pinst,
589 return true; 589 return true;
590} 590}
591 591
592/**
593 * padata_get_cpumask: Fetch serial or parallel cpumask from the
594 * given padata instance and copy it to @out_mask
595 *
596 * @pinst: A pointer to padata instance
597 * @cpumask_type: Specifies which cpumask will be copied.
598 * Possible values are PADATA_CPU_SERIAL *or* PADATA_CPU_PARALLEL
599 * corresponding to serial and parallel cpumask respectively.
600 * @out_mask: A pointer to cpumask structure where selected
601 * cpumask will be copied.
602 */
603int padata_get_cpumask(struct padata_instance *pinst,
604 int cpumask_type, struct cpumask *out_mask)
605{
606 struct parallel_data *pd;
607 int ret = 0;
608
609 rcu_read_lock_bh();
610 pd = rcu_dereference(pinst->pd);
611 switch (cpumask_type) {
612 case PADATA_CPU_SERIAL:
613 cpumask_copy(out_mask, pd->cpumask.cbcpu);
614 break;
615 case PADATA_CPU_PARALLEL:
616 cpumask_copy(out_mask, pd->cpumask.pcpu);
617 break;
618 default:
619 ret = -EINVAL;
620 }
621
622 rcu_read_unlock_bh();
623 return ret;
624}
625EXPORT_SYMBOL(padata_get_cpumask);
626
627static int __padata_set_cpumasks(struct padata_instance *pinst, 592static int __padata_set_cpumasks(struct padata_instance *pinst,
628 cpumask_var_t pcpumask, 593 cpumask_var_t pcpumask,
629 cpumask_var_t cbcpumask) 594 cpumask_var_t cbcpumask)