]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] spufs: Call spu_acquire_saved() before calculating the SPU note sizes
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 19 Sep 2007 04:38:12 +0000 (14:38 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Sep 2007 05:12:17 +0000 (15:12 +1000)
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 <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/coredump.c

index 66636693c9d67f43bc9bd048c0b6f61828653d71..21283f682889fffcd64c3874b58aef4903b5c541 100644 (file)
@@ -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)
                        break;