Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57368
b: refs/heads/master
c: e5c0b9e
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Paul Mackerras committed Jun 7, 2007
1 parent e50cdba commit 75ccf15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: d30ac1242bf842fe28501a78a460a43910ef2dba
refs/heads/master: e5c0b9ec538a86433ddd725f675e0a5a2117b9ed
8 changes: 5 additions & 3 deletions trunk/arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,11 @@ void spu_deactivate(struct spu_context *ctx)
*/
void spu_yield(struct spu_context *ctx)
{
mutex_lock(&ctx->state_mutex);
__spu_deactivate(ctx, 0, MAX_PRIO);
mutex_unlock(&ctx->state_mutex);
if (!(ctx->flags & SPU_CREATE_NOSCHED)) {
mutex_lock(&ctx->state_mutex);
__spu_deactivate(ctx, 0, MAX_PRIO);
mutex_unlock(&ctx->state_mutex);
}
}

void spu_sched_tick(struct work_struct *work)
Expand Down

0 comments on commit 75ccf15

Please sign in to comment.