[Cbe-oss-dev] [PATCH 4:9] spufs: Fix spu time slice count
    Luke Browning 
    lukebr at linux.vnet.ibm.com
       
    Fri May 30 06:46:15 EST 2008
    
    
  
Fix spu time slice count
An spu context shouldn't get an extra tick if the time slice code 
couldn't find something else to run.
Signed-off-by: Luke Browning <lukebrowning at us.ibm.com>
---
Index: linux-2.6.25/arch/powerpc/platforms/cell/spufs/sched.c
===================================================================
--- linux-2.6.25.orig/arch/powerpc/platforms/cell/spufs/sched.c
+++ linux-2.6.25/arch/powerpc/platforms/cell/spufs/sched.c
@@ -886,7 +886,8 @@ static noinline void spusched_tick(struc
 			spu_add_to_rq(ctx);
 	} else {
 		spu_context_nospu_trace(spusched_tick__newslice, ctx);
-		ctx->time_slice++;
+		if (!ctx->time_slice)
+			ctx->time_slice++;
 	}
 out:
 	spu_release(ctx);
    
    
More information about the cbe-oss-dev
mailing list