Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98174
b: refs/heads/master
c: 028fda0
h: refs/heads/master
v: v3
  • Loading branch information
Luke Browning authored and Jeremy Kerr committed Jun 16, 2008
1 parent b4bc378 commit ec7f882
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c911a14b74fa9cf815a936f310e4fa85bee77ce
refs/heads/master: 028fda0a6c80c26f1d9f403b4490b9ddc74ffa3b
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ static int has_affinity(struct spu_context *ctx)
*/
static void spu_unbind_context(struct spu *spu, struct spu_context *ctx)
{
u32 status;

spu_context_trace(spu_unbind_context__enter, ctx, spu);

spuctx_switch_state(ctx, SPU_UTIL_SYSTEM);
Expand Down Expand Up @@ -452,6 +454,9 @@ static void spu_unbind_context(struct spu *spu, struct spu_context *ctx)
/* This maps the underlying spu state to idle */
spuctx_switch_state(ctx, SPU_UTIL_IDLE_LOADED);
ctx->spu = NULL;

if (spu_stopped(ctx, &status))
wake_up_all(&ctx->stop_wq);
}

/**
Expand Down

0 comments on commit ec7f882

Please sign in to comment.