Message ID | 200812101904.mBAJ4TZq016705@d24av01.br.ibm.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index 7b4852f..3163239 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c @@ -1293,8 +1293,8 @@ static int spusched_thread(void *unused) mutex_unlock(mtx); preempted += spusched_tick(gang, ctx, preempted < maxcontexts); - mutex_lock(mtx); put_spu_context(ctx); + mutex_lock(mtx); active++; } }