aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/sched.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 39823cec0844..c9561582ce2a 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -438,7 +438,6 @@ void spu_deactivate(struct spu_context *ctx)
438void spu_yield(struct spu_context *ctx) 438void spu_yield(struct spu_context *ctx)
439{ 439{
440 struct spu *spu; 440 struct spu *spu;
441 int need_yield = 0;
442 441
443 if (mutex_trylock(&ctx->state_mutex)) { 442 if (mutex_trylock(&ctx->state_mutex)) {
444 if ((spu = ctx->spu) != NULL) { 443 if ((spu = ctx->spu) != NULL) {
@@ -447,13 +446,10 @@ void spu_yield(struct spu_context *ctx)
447 pr_debug("%s: yielding SPU %d NODE %d\n", 446 pr_debug("%s: yielding SPU %d NODE %d\n",
448 __FUNCTION__, spu->number, spu->node); 447 __FUNCTION__, spu->number, spu->node);
449 spu_deactivate(ctx); 448 spu_deactivate(ctx);
450 need_yield = 1;
451 } 449 }
452 } 450 }
453 mutex_unlock(&ctx->state_mutex); 451 mutex_unlock(&ctx->state_mutex);
454 } 452 }
455 if (unlikely(need_yield))
456 yield();
457} 453}
458 454
459int __init spu_sched_init(void) 455int __init spu_sched_init(void)