aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-09-19 00:38:12 -0400
committerPaul Mackerras <paulus@samba.org>2007-09-19 01:12:17 -0400
commit9a5080f11d67972d7972d824f1b1827fafbce126 (patch)
tree76368076a85a01873357ad4f93ac6eccf4b6c76e /arch/powerpc/platforms
parentf9b7bbe7a803c6f10e7b3a354c5d97f632060320 (diff)
[POWERPC] spufs: Call spu_acquire_saved() before calculating the SPU note sizes
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>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/cell/spufs/coredump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c
index 66636693c9d6..21283f682889 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)
135 135
136 fd = 0; 136 fd = 0;
137 while ((ctx = coredump_next_context(&fd)) != NULL) { 137 while ((ctx = coredump_next_context(&fd)) != NULL) {
138 spu_acquire_saved(ctx);
138 rc = spufs_ctx_note_size(ctx, fd); 139 rc = spufs_ctx_note_size(ctx, fd);
140 spu_release_saved(ctx);
139 if (rc < 0) 141 if (rc < 0)
140 break; 142 break;
141 143