aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/spufs/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/context.c')
-rw-r--r--arch/powerpc/platforms/cell/spufs/context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c
index 0d88a1c24f67..1758cec58bc7 100644
--- a/arch/powerpc/platforms/cell/spufs/context.c
+++ b/arch/powerpc/platforms/cell/spufs/context.c
@@ -116,8 +116,10 @@ int spu_acquire_runnable(struct spu_context *ctx)
116 int ret = 0; 116 int ret = 0;
117 117
118 down_read(&ctx->state_sema); 118 down_read(&ctx->state_sema);
119 if (ctx->state == SPU_STATE_RUNNABLE) 119 if (ctx->state == SPU_STATE_RUNNABLE) {
120 ctx->spu->prio = current->prio;
120 return 0; 121 return 0;
122 }
121 /* ctx is about to be freed, can't acquire any more */ 123 /* ctx is about to be freed, can't acquire any more */
122 if (!ctx->owner) { 124 if (!ctx->owner) {
123 ret = -EINVAL; 125 ret = -EINVAL;