[Cbe-oss-dev] [PATCH] spufs: fix affinity after introduction of node_allowed() calls

André Detsch adetsch at br.ibm.com
Sat Jul 28 04:35:35 EST 2007


Jeremy,

Can you queue this fix for inclusion in 2.6.23-rc2?

Andre Detsch wrote:
> Subject: spufs: fix affinity after introduction of node_allowed() calls
> 
> From: Andre Detsch <adetsch at br.ibm.com>
> 
> This patch fixes affinity reference point placement, which was not being
> done in some situations, after the introduction of node_allowed() calls.
> 
> Signed-off-by: Andre Detsch <adetsch at br.ibm.com>
> 
> Index: linux-2.6.22/arch/powerpc/platforms/cell/spufs/sched.c
> ===================================================================
> --- linux-2.6.22.orig/arch/powerpc/platforms/cell/spufs/sched.c
> +++ linux-2.6.22/arch/powerpc/platforms/cell/spufs/sched.c
> @@ -307,7 +307,8 @@ static void aff_set_ref_point_location(s
>  		lowest_offset = ctx->aff_offset;
>  	}
> 
> -	gang->aff_ref_spu = aff_ref_location(ctx, mem_aff, gs, lowest_offset);
> +	gang->aff_ref_spu = aff_ref_location(gang->aff_ref_ctx, mem_aff, gs,
> +							lowest_offset);
>  }
> 
>  static struct spu *ctx_location(struct spu *ref, int offset, int node)
> _______________________________________________
> cbe-oss-dev mailing list
> cbe-oss-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/cbe-oss-dev




More information about the cbe-oss-dev mailing list