[Cbe-oss-dev] [PATCH] spusched: ix variable length timeslice calculation

Luke Browning lukebr at linux.vnet.ibm.com
Mon May 28 09:57:22 EST 2007


Fix millisecond calculations.  

Signed-off-by: Luke Browning <lukebrowning at us.ibm.com>

Index: linux-2.6.22-rc2/arch/powerpc/platforms/cell/spufs/sched.c
===================================================================
--- linux-2.6.22-rc2.orig/arch/powerpc/platforms/cell/spufs/sched.c	2007-05-27 20:30:16.000000000 -0300
+++ linux-2.6.22-rc2/arch/powerpc/platforms/cell/spufs/sched.c	2007-05-27 20:40:01.000000000 -0300
@@ -79,8 +79,8 @@
  * Minimum timeslice is 5 msecs (or 10 jiffies, whichever is larger),
  * default timeslice is 100 msecs, maximum timeslice is 800 msecs.
  */
-#define MIN_SPU_TIMESLICE	max(5 * HZ / 100, 10)
-#define DEF_SPU_TIMESLICE	(100 * HZ / 100)
+#define MIN_SPU_TIMESLICE	max(5 * HZ / 1000, 10)
+#define DEF_SPU_TIMESLICE	(100 * HZ / 1000)
 
 #define MAX_USER_PRIO		(MAX_PRIO - MAX_RT_PRIO)
 #define SCALE_PRIO(x, prio) \





More information about the cbe-oss-dev mailing list