Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=08c9692b168240729cf89c69c4ad722760a5690c
Commit:     08c9692b168240729cf89c69c4ad722760a5690c
Parent:     e9f8a0b65ac716fd7974159240ce34bddea780b3
Author:     Jeremy Kerr <[EMAIL PROTECTED]>
AuthorDate: Fri Jun 29 10:58:04 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Tue Jul 3 15:24:46 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/cell/spufs/run.c |    2 +-
 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 c69f63d..05cf815 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,
                                       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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to