aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-06-28 20:58:04 -0400
committerPaul Mackerras <paulus@samba.org>2007-07-03 01:24:46 -0400
commit08c9692b168240729cf89c69c4ad722760a5690c (patch)
treebbba70fa9e16b4ee0dd1fa12d1ad6372e0862bdc /arch
parente9f8a0b65ac716fd7974159240ce34bddea780b3 (diff)
[POWERPC] spufs: Fix libassist accounting
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c
index c69f63dd5f0a..05cf815dbdad 100644
--- a/arch/powerpc/platforms/cell/spufs/run.c
+++ b/arch/powerpc/platforms/cell/spufs/run.c
@@ -352,7 +352,7 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx,
352 SPU_STATUS_SINGLE_STEP))); 352 SPU_STATUS_SINGLE_STEP)));
353 353
354 if ((status & SPU_STATUS_STOPPED_BY_STOP) && 354 if ((status & SPU_STATUS_STOPPED_BY_STOP) &&
355 ((status >> SPU_STOP_STATUS_SHIFT) & 0x2100)) 355 (((status >> SPU_STOP_STATUS_SHIFT) & 0x3f00) == 0x2100))
356 ctx->stats.libassist++; 356 ctx->stats.libassist++;
357 357
358 ctx->ops->master_stop(ctx); 358 ctx->ops->master_stop(ctx);