diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2010-07-20 02:48:34 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-07-26 02:13:57 -0400 |
commit | fad3a906d324c02b3c25ef51f702384154089846 (patch) | |
tree | 73f860f5547c9bf5c87040fa032ae9302f886a46 /kernel/padata.c | |
parent | 1fb1defbb00eb2954483a7d9a70f8a02edf51753 (diff) |
padata: Fix cpu index counting
The counting of the cpu index got lost with a recent commit.
This patch restores it. This fixes a hang of the parallel worker
threads on cpu hotplug.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/padata.c')
-rw-r--r-- | kernel/padata.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/padata.c b/kernel/padata.c index 526f9ea2fcc8..4287868bbe37 100644 --- a/kernel/padata.c +++ b/kernel/padata.c | |||
@@ -408,6 +408,7 @@ static void padata_init_pqueues(struct parallel_data *pd) | |||
408 | pqueue = per_cpu_ptr(pd->pqueue, cpu); | 408 | pqueue = per_cpu_ptr(pd->pqueue, cpu); |
409 | pqueue->pd = pd; | 409 | pqueue->pd = pd; |
410 | pqueue->cpu_index = cpu_index; | 410 | pqueue->cpu_index = cpu_index; |
411 | cpu_index++; | ||
411 | 412 | ||
412 | __padata_list_init(&pqueue->reorder); | 413 | __padata_list_init(&pqueue->reorder); |
413 | __padata_list_init(&pqueue->parallel); | 414 | __padata_list_init(&pqueue->parallel); |