]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/spufs: sputrace: Don't block until the read buffer is full
authorJeremy Kerr <jk@ozlabs.org>
Wed, 15 Oct 2008 02:20:42 +0000 (13:20 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 Oct 2008 00:13:07 +0000 (11:13 +1100)
commit2b817fc3c7ffaad90d3f326c9effc10bfacda1e0
treebe2506f59efce3c5cd6d5a847ae40ea7657c2bb5
parent6d148cbedc27eb879634bd7186fdf26d2d533be9
powerpc/spufs: sputrace: Don't block until the read buffer is full

Currently, read() on the sputrace buffer will only return data when
the user buffer is exhausted. This may mean that we never see the
end of the event log, unless we read() with exactly the right-sized
buffer.

This change makes sputrace_read not block if we have data ready to
return.

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