[POWERPC] spufs: Fix incorrect initialization of cbe_spu_info.spus
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>
Wed, 25 Jul 2007 03:20:15 +0000 (13:20 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 06:17:55 +0000 (16:17 +1000)
commit6f6a6dc0c8ebdb6514ab6bb58ba4b8739957b342
tree136047637eced9660ed31104694a158b2f2a49f8
parent17cd87c26bd86546ea3217397ef3428581970058
[POWERPC] spufs: Fix incorrect initialization of cbe_spu_info.spus

We currently initialize cbe_spu_info[].spus in both init_spu_base and
spu_sched_init. The initialise in spu_sched_init clears the SPU list,
so we end up with no physical SPUs. Because of this, the spu_run
syscall will block forever.

This change removes the unnecessary initialization in spu_sched_init.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/sched.c