[Cbe-oss-dev] [PATCH 2/3] spu sched: update some comments
Christoph Hellwig
hch at lst.de
Fri Feb 9 10:42:56 EST 2007
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 at lst.de>
Index: linux-2.6/arch/powerpc/platforms/cell/spufs/sched.c
===================================================================
--- linux-2.6.orig/arch/powerpc/platforms/cell/spufs/sched.c 2007-02-05 12:47:14.000000000 +0100
+++ linux-2.6/arch/powerpc/platforms/cell/spufs/sched.c 2007-02-05 12:47:18.000000000 +0100
@@ -281,14 +281,6 @@
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
@@ -339,6 +331,14 @@
}
}
+/**
+ * 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;
More information about the cbe-oss-dev
mailing list