Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48252
b: refs/heads/master
c: ae7b4c5
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Arnd Bergmann committed Feb 13, 2007
1 parent 93a03c3 commit 9c4d43e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 678b2ff1e65ecccdb15cbfe97081572fc35944b7
refs/heads/master: ae7b4c5284d11d49ed9432c16505fcbeb8d3b8cf
16 changes: 8 additions & 8 deletions trunk/arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,6 @@ static struct spu *spu_get_idle(struct spu_context *ctx)
return spu;
}

/* The three externally callable interfaces
* for the scheduler begin here.
*
* spu_activate - bind a context to SPU, waiting as needed.
* spu_deactivate - unbind a context from its SPU.
* spu_yield - yield an SPU if others are waiting.
*/

/**
* spu_activate - find a free spu for a context and execute it
* @ctx: spu context to schedule
Expand Down Expand Up @@ -339,6 +331,14 @@ void spu_deactivate(struct spu_context *ctx)
}
}

/**
* spu_yield - yield a physical spu if others are waiting
* @ctx: spu context to yield
*
* Check if there is a higher priority context waiting and if yes
* unbind @ctx from the physical spu and schedule the highest
* priority context to run on the freed physical spu instead.
*/
void spu_yield(struct spu_context *ctx)
{
struct spu *spu;
Expand Down

0 comments on commit 9c4d43e

Please sign in to comment.