[CELL] spufs: make sure context are scheduled again after spu_acquire_saved
Currently a process is removed from the physical spu when spu_acquire_saved is saved but never put back. This patch adds a new spu_release_saved that is to be paired with spu_acquire_saved and put the process back if it has been in RUNNABLE state before. Niether Jeremy not be are entirely happy about this exact patch because it adds another spu_activate call outside of the owner thread, but I feel this is the best short-term fix we can come up with. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Jeremy Kerr <jk@ozlabs.org> Signed-off-by:
Arnd Bergmann <arnd.bergmann@de.ibm.com>
Showing
- arch/powerpc/platforms/cell/spufs/context.c 17 additions, 1 deletionarch/powerpc/platforms/cell/spufs/context.c
- arch/powerpc/platforms/cell/spufs/coredump.c 1 addition, 1 deletionarch/powerpc/platforms/cell/spufs/coredump.c
- arch/powerpc/platforms/cell/spufs/file.c 21 additions, 21 deletionsarch/powerpc/platforms/cell/spufs/file.c
- arch/powerpc/platforms/cell/spufs/spufs.h 5 additions, 0 deletionsarch/powerpc/platforms/cell/spufs/spufs.h
Loading
Please register or sign in to comment