Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116919
b: refs/heads/master
c: 34318c2
h: refs/heads/master
i:
  116917: c4ec853
  116915: 5a74228
  116911: 28ce50b
v: v3
  • Loading branch information
Andre Detsch authored and Jeremy Kerr committed Oct 21, 2008
1 parent 24cafa8 commit ceedebc
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: 10baa26c8ccba6f100397c9ba6534be175762e8d
refs/heads/master: 34318c253b861f82bd4a2956e6c8ae8ee2c3aae7
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 @@ -444,6 +444,11 @@ static void spu_unbind_context(struct spu *spu, struct spu_context *ctx)
atomic_dec(&cbe_spu_info[spu->node].reserved_spus);

if (ctx->gang)
/*
* If ctx->gang->aff_sched_count is positive, SPU affinity is
* being considered in this gang. Using atomic_dec_if_positive
* allow us to skip an explicit check for affinity in this gang
*/
atomic_dec_if_positive(&ctx->gang->aff_sched_count);

spu_switch_notify(spu, NULL);
Expand Down

0 comments on commit ceedebc

Please sign in to comment.