diff options
author | Christoph Hellwig <hch@lst.de> | 2007-02-13 15:54:26 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@klappe.arndb.de> | 2007-02-13 15:55:42 -0500 |
commit | ae7b4c5284d11d49ed9432c16505fcbeb8d3b8cf (patch) | |
tree | c1d627d745843c48aa6bb3dc9086c63b4e3f840a /arch/powerpc | |
parent | 678b2ff1e65ecccdb15cbfe97081572fc35944b7 (diff) |
[POWERPC] spu sched: update some comments
Give spu_yield a kerneldoc comment and remove the old comment
documenting spu_activate, spu_deactive and spu_yield as all of them
now have descriptive kerneldoc comments of their own.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/sched.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index 40202a752a7a..eb06a030ca09 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c | |||
@@ -281,14 +281,6 @@ static struct spu *spu_get_idle(struct spu_context *ctx) | |||
281 | return spu; | 281 | return spu; |
282 | } | 282 | } |
283 | 283 | ||
284 | /* The three externally callable interfaces | ||
285 | * for the scheduler begin here. | ||
286 | * | ||
287 | * spu_activate - bind a context to SPU, waiting as needed. | ||
288 | * spu_deactivate - unbind a context from its SPU. | ||
289 | * spu_yield - yield an SPU if others are waiting. | ||
290 | */ | ||
291 | |||
292 | /** | 284 | /** |
293 | * spu_activate - find a free spu for a context and execute it | 285 | * spu_activate - find a free spu for a context and execute it |
294 | * @ctx: spu context to schedule | 286 | * @ctx: spu context to schedule |
@@ -339,6 +331,14 @@ void spu_deactivate(struct spu_context *ctx) | |||
339 | } | 331 | } |
340 | } | 332 | } |
341 | 333 | ||
334 | /** | ||
335 | * spu_yield - yield a physical spu if others are waiting | ||
336 | * @ctx: spu context to yield | ||
337 | * | ||
338 | * Check if there is a higher priority context waiting and if yes | ||
339 | * unbind @ctx from the physical spu and schedule the highest | ||
340 | * priority context to run on the freed physical spu instead. | ||
341 | */ | ||
342 | void spu_yield(struct spu_context *ctx) | 342 | void spu_yield(struct spu_context *ctx) |
343 | { | 343 | { |
344 | struct spu *spu; | 344 | struct spu *spu; |