Commit aa56c168 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Arnd Bergmann

[POWERPC] spufs: remove superfluous SPU_STATE_SAVED assignments

unbind_context already sets the context state to SPU_STATE_SAVED, thus
the spu_deactivate callers don't need to do it again.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
parent 5cb23afc
...@@ -197,10 +197,8 @@ void spu_acquire_saved(struct spu_context *ctx) ...@@ -197,10 +197,8 @@ void spu_acquire_saved(struct spu_context *ctx)
up_read(&ctx->state_sema); up_read(&ctx->state_sema);
down_write(&ctx->state_sema); down_write(&ctx->state_sema);
if (ctx->state == SPU_STATE_RUNNABLE) { if (ctx->state == SPU_STATE_RUNNABLE)
spu_deactivate(ctx); spu_deactivate(ctx);
ctx->state = SPU_STATE_SAVED;
}
downgrade_write(&ctx->state_sema); downgrade_write(&ctx->state_sema);
} }
...@@ -315,7 +315,6 @@ void spu_yield(struct spu_context *ctx) ...@@ -315,7 +315,6 @@ void spu_yield(struct spu_context *ctx)
pr_debug("%s: yielding SPU %d NODE %d\n", pr_debug("%s: yielding SPU %d NODE %d\n",
__FUNCTION__, spu->number, spu->node); __FUNCTION__, spu->number, spu->node);
spu_deactivate(ctx); spu_deactivate(ctx);
ctx->state = SPU_STATE_SAVED;
need_yield = 1; need_yield = 1;
} else { } else {
spu->prio = MAX_PRIO; spu->prio = MAX_PRIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment