Skip to content

Commit

Permalink
[POWERPC] spufs: Fix libassist accounting
Browse files Browse the repository at this point in the history
We're currently too permissive with counting libassist calls - fix the
check on the SPE stop-and-signal status.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Jeremy Kerr authored and Paul Mackerras committed Jul 3, 2007
1 parent e9f8a0b commit 08c9692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/cell/spufs/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx,
SPU_STATUS_SINGLE_STEP)));

if ((status & SPU_STATUS_STOPPED_BY_STOP) &&
((status >> SPU_STOP_STATUS_SHIFT) & 0x2100))
(((status >> SPU_STOP_STATUS_SHIFT) & 0x3f00) == 0x2100))
ctx->stats.libassist++;

ctx->ops->master_stop(ctx);
Expand Down

0 comments on commit 08c9692

Please sign in to comment.