diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index e929e70a84e3..afb92d4fbcf5 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c | |||
@@ -899,7 +899,8 @@ static noinline void spusched_tick(struct spu_context *ctx) | |||
899 | spu_add_to_rq(ctx); | 899 | spu_add_to_rq(ctx); |
900 | } else { | 900 | } else { |
901 | spu_context_nospu_trace(spusched_tick__newslice, ctx); | 901 | spu_context_nospu_trace(spusched_tick__newslice, ctx); |
902 | ctx->time_slice++; | 902 | if (!ctx->time_slice) |
903 | ctx->time_slice++; | ||
903 | } | 904 | } |
904 | out: | 905 | out: |
905 | spu_release(ctx); | 906 | spu_release(ctx); |