diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2010-07-27 01:14:28 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-07-31 07:53:04 -0400 |
commit | e6cc11707661770ca2bd4db4b0256d28f48e7541 (patch) | |
tree | 885f2ea00e90ac9e379d54adf8e5ad0fbb9d9892 /include/linux/padata.h | |
parent | cc74f4bc111e9554bcd6445ad0fe1d90e5d2eb34 (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/padata.h')
-rw-r--r-- | include/linux/padata.h | 9 |
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 | ||
168 | extern struct padata_instance *padata_alloc(struct workqueue_struct *wq); | 168 | extern struct padata_instance *padata_alloc_possible( |
169 | extern struct padata_instance *__padata_alloc(struct workqueue_struct *wq, | 169 | struct workqueue_struct *wq); |
170 | const struct cpumask *pcpumask, | 170 | extern struct padata_instance *padata_alloc(struct workqueue_struct *wq, |
171 | const struct cpumask *cbcpumask); | 171 | const struct cpumask *pcpumask, |
172 | const struct cpumask *cbcpumask); | ||
172 | extern void padata_free(struct padata_instance *pinst); | 173 | extern void padata_free(struct padata_instance *pinst); |
173 | extern int padata_do_parallel(struct padata_instance *pinst, | 174 | extern int padata_do_parallel(struct padata_instance *pinst, |
174 | struct padata_priv *padata, int cb_cpu); | 175 | struct padata_priv *padata, int cb_cpu); |