diff options
-rw-r--r-- | arch/powerpc/platforms/cell/spu_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index eba7a2641d..6242f3c19f 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c | |||
@@ -431,10 +431,11 @@ struct spu *spu_alloc_node(int node) | |||
431 | spu = list_entry(spu_list[node].next, struct spu, list); | 431 | spu = list_entry(spu_list[node].next, struct spu, list); |
432 | list_del_init(&spu->list); | 432 | list_del_init(&spu->list); |
433 | pr_debug("Got SPU %d %d\n", spu->number, spu->node); | 433 | pr_debug("Got SPU %d %d\n", spu->number, spu->node); |
434 | spu_init_channels(spu); | ||
435 | } | 434 | } |
436 | mutex_unlock(&spu_mutex); | 435 | mutex_unlock(&spu_mutex); |
437 | 436 | ||
437 | if (spu) | ||
438 | spu_init_channels(spu); | ||
438 | return spu; | 439 | return spu; |
439 | } | 440 | } |
440 | EXPORT_SYMBOL_GPL(spu_alloc_node); | 441 | EXPORT_SYMBOL_GPL(spu_alloc_node); |