Commit:     9a5080f11d67972d7972d824f1b1827fafbce126
Parent:     f9b7bbe7a803c6f10e7b3a354c5d97f632060320
Author:     Michael Ellerman <[EMAIL PROTECTED]>
AuthorDate: Wed Sep 19 14:38:12 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Sep 19 15:12:17 2007 +1000

    [POWERPC] spufs: Call spu_acquire_saved() before calculating the SPU note 
    It makes sense to stop the SPU processes as soon as possible.  Also if we
    dont acquire_saved() I think there's a possibility that the value in
    csa.priv2.spu_lslr_RW won't be accurate.
    Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]>
    Signed-off-by: Jeremy Kerr <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/platforms/cell/spufs/coredump.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c 
index 6663669..21283f6 100644
--- a/arch/powerpc/platforms/cell/spufs/coredump.c
+++ b/arch/powerpc/platforms/cell/spufs/coredump.c
@@ -135,7 +135,9 @@ static int spufs_arch_notes_size(void)
        fd = 0;
        while ((ctx = coredump_next_context(&fd)) != NULL) {
+               spu_acquire_saved(ctx);
                rc = spufs_ctx_note_size(ctx, fd);
+               spu_release_saved(ctx);
                if (rc < 0)
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

Reply via email to