Skip to content

Commit

Permalink
[POWERPC] spufs: Fix affinity after introduction of node_allowed() calls
Browse files Browse the repository at this point in the history
This patch fixes affinity reference point placement, which was not being
done in some situations, after the introduction of node_allowed() calls.

The previously used parameter, 'ctx', is just the iterator of the
previous list_for_each_entry_reverse loop, and its value might be
invalid at the end of the loop. Also, the right context to seek
for information when defining the reference ctx location
_is_ the reference ctx.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Andre Detsch authored and Paul Mackerras committed Aug 3, 2007
1 parent 430404e commit 683e3ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ static void aff_set_ref_point_location(struct spu_gang *gang)
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)
Expand Down

0 comments on commit 683e3ab

Please sign in to comment.