Commit:     6f6a6dc0c8ebdb6514ab6bb58ba4b8739957b342
Parent:     17cd87c26bd86546ea3217397ef3428581970058
Author:     Masato Noguchi <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 25 13:20:15 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Jul 26 16:17:55 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeremy Kerr <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/platforms/cell/spufs/sched.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spufs/sched.c 
index 227968b..758a80a 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -927,10 +927,6 @@ int __init spu_sched_init(void)
                __clear_bit(i, spu_prio->bitmap);
-       for (i = 0; i < MAX_NUMNODES; i++) {
-               mutex_init(&cbe_spu_info[i].list_mutex);
-               INIT_LIST_HEAD(&cbe_spu_info[i].spus);
-       }
        setup_timer(&spusched_timer, spusched_wake, 0);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to