[Cbe-oss-dev] [PATCH 4:9] spufs: Fix spu time slice count

Jeremy Kerr jk at ozlabs.org
Wed Jun 4 17:13:07 EST 2008


Hi Luke,

> 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++;

Looks good.



Jeremy



More information about the cbe-oss-dev mailing list