padata: Pass the padata cpumasks to the cpumask_change_notifier chain

We pass a pointer to the new padata cpumasks to the cpumask_change_notifier
chain. So users can access the cpumasks without the need of an extra
padata_get_cpumask function.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Steffen Klassert 2010-07-27 07:15:50 +02:00 committed by Herbert Xu
parent 65ff577e6b
commit c635696c7c
2 changed files with 23 additions and 20 deletions

View file

@ -538,7 +538,8 @@ static void padata_replace(struct padata_instance *pinst,
if (notification_mask)
blocking_notifier_call_chain(&pinst->cpumask_change_notifier,
notification_mask, pinst);
notification_mask,
&pd_new->cpumask);
pinst->flags &= ~PADATA_RESET;
}