]> err.no Git - linux-2.6/commit
[POWERPC] spufs: Extract the file descriptor search logic in SPU coredump code
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)
commita595ed662c96dcd920415bea3135ff1af60e9a00
tree7af50d6bdcf0052fb2aa6d4671947ffbb5efd036
parentc70d4ca52b1390dd2603535600c948cbdb0b9ec9
[POWERPC] spufs: Extract the file descriptor search logic in SPU coredump code

Extract the logic for searching through the file descriptors for spu contexts
into a separate routine, coredump_next_context(), so we can use it elsewhere
in future.  In the process we flatten the for loop, and move the NOSCHED test
into coredump_next_context().

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