Commit 9a5080f1 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras

[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: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent f9b7bbe7
...@@ -135,7 +135,9 @@ static int spufs_arch_notes_size(void) ...@@ -135,7 +135,9 @@ static int spufs_arch_notes_size(void)
fd = 0; fd = 0;
while ((ctx = coredump_next_context(&fd)) != NULL) { while ((ctx = coredump_next_context(&fd)) != NULL) {
spu_acquire_saved(ctx);
rc = spufs_ctx_note_size(ctx, fd); rc = spufs_ctx_note_size(ctx, fd);
spu_release_saved(ctx);
if (rc < 0) if (rc < 0)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment