aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2010-07-27 01:14:28 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2010-07-31 07:53:04 -0400
commite6cc11707661770ca2bd4db4b0256d28f48e7541 (patch)
tree885f2ea00e90ac9e379d54adf8e5ad0fbb9d9892 /include/linux
parentcc74f4bc111e9554bcd6445ad0fe1d90e5d2eb34 (diff)
padata: Rename padata_alloc functions
We rename padata_alloc to padata_alloc_possible because this function allocates a padata_instance and uses the cpu_possible mask for parallel and serial workers. Also we rename __padata_alloc to padata_alloc to avoid to export underlined functions. Underlined functions are considered to be private to padata. Users are updated accordingly. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/padata.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/padata.h b/include/linux/padata.h
index 293ad46ffced..71dfc9d1f856 100644
--- a/include/linux/padata.h
+++ b/include/linux/padata.h
@@ -165,10 +165,11 @@ struct padata_instance {
165#define PADATA_INVALID 4 165#define PADATA_INVALID 4
166}; 166};
167 167
168extern struct padata_instance *padata_alloc(struct workqueue_struct *wq); 168extern struct padata_instance *padata_alloc_possible(
169extern struct padata_instance *__padata_alloc(struct workqueue_struct *wq, 169 struct workqueue_struct *wq);
170 const struct cpumask *pcpumask, 170extern struct padata_instance *padata_alloc(struct workqueue_struct *wq,
171 const struct cpumask *cbcpumask); 171 const struct cpumask *pcpumask,
172 const struct cpumask *cbcpumask);
172extern void padata_free(struct padata_instance *pinst); 173extern void padata_free(struct padata_instance *pinst);
173extern int padata_do_parallel(struct padata_instance *pinst, 174extern int padata_do_parallel(struct padata_instance *pinst,
174 struct padata_priv *padata, int cb_cpu); 175 struct padata_priv *padata, int cb_cpu);