]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/spufs: Don't require full buffer in switch_log read
authorJeremy Kerr <jk@ozlabs.org>
Wed, 15 Oct 2008 23:51:46 +0000 (10:51 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 Oct 2008 00:13:30 +0000 (11:13 +1100)
commit14f693eeb5b16bc47ffa38d8b8838a654aedd53f
tree428efb2f55de8a9f49af44c6e4f1d15536451702
parentf5ed0eb6fe131e8f3847323b4aa569a6f7b36f56
powerpc/spufs: Don't require full buffer in switch_log read

Currently, read() on the sputrace log will block until the read buffer
is full. This makes it difficult to retrieve the end of the buffer, as
the user will need to read with the right-sized buffer.

In a similar method as 91553a1b5e0df006a3573a88d98ee7cd48a3818a, this
change makes the switch_log return if there has already been data
read.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/file.c