]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit70f033560a3a7f3d57c2aba135a97a3b4a835020
tree136047637eced9660ed31104694a158b2f2a49f8
parente1fac4dbceda9839cc2f312b2455243622ef4ff2
[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