aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/platforms/cell/spufs/context.c2
-rw-r--r--arch/powerpc/platforms/cell/spufs/sched.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c
index dd89aa7c1f16..ccffc449763b 100644
--- a/arch/powerpc/platforms/cell/spufs/context.c
+++ b/arch/powerpc/platforms/cell/spufs/context.c
@@ -139,7 +139,6 @@ int spu_acquire_exclusive(struct spu_context *ctx)
139 ret = spu_activate(ctx, 0); 139 ret = spu_activate(ctx, 0);
140 if (ret) 140 if (ret)
141 goto out; 141 goto out;
142 ctx->state = SPU_STATE_RUNNABLE;
143 } else { 142 } else {
144 /* We need to exclude userspace access to the context. */ 143 /* We need to exclude userspace access to the context. */
145 spu_unmap_mappings(ctx); 144 spu_unmap_mappings(ctx);
@@ -173,7 +172,6 @@ int spu_acquire_runnable(struct spu_context *ctx)
173 ret = spu_activate(ctx, 0); 172 ret = spu_activate(ctx, 0);
174 if (ret) 173 if (ret)
175 goto out; 174 goto out;
176 ctx->state = SPU_STATE_RUNNABLE;
177 } 175 }
178 176
179 downgrade_write(&ctx->state_sema); 177 downgrade_write(&ctx->state_sema);
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 6599cba9689b..7e9657eb690c 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -118,6 +118,8 @@ static inline void bind_context(struct spu *spu, struct spu_context *ctx)
118 spu->timestamp = jiffies; 118 spu->timestamp = jiffies;
119 spu_cpu_affinity_set(spu, raw_smp_processor_id()); 119 spu_cpu_affinity_set(spu, raw_smp_processor_id());
120 spu_switch_notify(spu, ctx); 120 spu_switch_notify(spu, ctx);
121
122 ctx->state = SPU_STATE_RUNNABLE;
121} 123}
122 124
123static inline void unbind_context(struct spu *spu, struct spu_context *ctx) 125static inline void unbind_context(struct spu *spu, struct spu_context *ctx)