aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/cell/spufs/sched.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index a20e4e28858c..7bb5229b1e3c 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -522,7 +522,12 @@ void spu_yield(struct spu_context *ctx)
522 522
523static void spusched_tick(struct spu_context *ctx) 523static void spusched_tick(struct spu_context *ctx)
524{ 524{
525 if (ctx->policy == SCHED_FIFO || --ctx->time_slice) 525 if (ctx->flags & SPU_CREATE_NOSCHED)
526 return;
527 if (ctx->policy == SCHED_FIFO)
528 return;
529
530 if (--ctx->time_slice)
526 return; 531 return;
527 532
528 /* 533 /*