[POWERPC] spufs: bind_context sets SPU_STATE_RUNNABLE
[powerpc.git] / arch / powerpc / platforms / cell / spufs / context.c
index dd89aa7..ccffc44 100644 (file)
@@ -139,7 +139,6 @@ int spu_acquire_exclusive(struct spu_context *ctx)
                ret = spu_activate(ctx, 0);
                if (ret)
                        goto out;
-               ctx->state = SPU_STATE_RUNNABLE;
        } else {
                /* We need to exclude userspace access to the context. */
                spu_unmap_mappings(ctx);
@@ -173,7 +172,6 @@ int spu_acquire_runnable(struct spu_context *ctx)
                ret = spu_activate(ctx, 0);
                if (ret)
                        goto out;
-               ctx->state = SPU_STATE_RUNNABLE;
        }
 
        downgrade_write(&ctx->state_sema);