]> git.baikalelectronics.ru Git - kernel.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)
commit17f1e976a0677962db4b15a74744b4b0bed90b3c
tree428efb2f55de8a9f49af44c6e4f1d15536451702
parent440b56c5ec21aa69e8f0f33b6a01773760dcac3a
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