]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] spufs: Fix libassist accounting
authorJeremy Kerr <jk@ozlabs.org>
Fri, 29 Jun 2007 00:58:04 +0000 (10:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Jul 2007 05:24:46 +0000 (15:24 +1000)
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>
arch/powerpc/platforms/cell/spufs/run.c

index c69f63dd5f0a1d25dd1a12d964041dad790e42d9..05cf815dbdadc185df29527880ab406698b9053a 100644 (file)
@@ -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);