Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86636
b: refs/heads/master
c: 0111a70
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Kerr committed Feb 27, 2008
1 parent bc77c68 commit 283de69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d58831375d68a3bd39d5ebab9eca711fbb4ee108
refs/heads/master: 0111a701867a796a7ca6ecbc385e4befc9f35066
7 changes: 3 additions & 4 deletions trunk/arch/powerpc/platforms/cell/spufs/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,12 @@ void spu_forget(struct spu_context *ctx)

/*
* This is basically an open-coded spu_acquire_saved, except that
* we don't acquire the state mutex interruptible.
* we don't acquire the state mutex interruptible, and we don't
* want this context to be rescheduled on release.
*/
mutex_lock(&ctx->state_mutex);
if (ctx->state != SPU_STATE_SAVED) {
set_bit(SPU_SCHED_WAS_ACTIVE, &ctx->sched_flags);
if (ctx->state != SPU_STATE_SAVED)
spu_deactivate(ctx);
}

mm = ctx->owner;
ctx->owner = NULL;
Expand Down

0 comments on commit 283de69

Please sign in to comment.