Home
last modified time | relevance | path

Searched hist:f027faa2 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dfile.cf027faa2 Wed Oct 15 19:11:12 CDT 2008 Jeremy Kerr <jk@ozlabs.org> powerpc/spufs: Don't spu_acquire_saved unnecessarily in regs read

With most file readers (eg cat, dd), reading a context's regs file will
result in two reads: the first to read the data, and the second to
return EOF. Because each read performs a spu_acquire_saved, we end up
descheduling and re-scheduling the context twice.

This change does a simple check to see if we'd return EOF before
calling spu_acquire_saved(), saving the extra schedule operation.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
f027faa2 Wed Oct 15 19:11:12 CDT 2008 Jeremy Kerr <jk@ozlabs.org> powerpc/spufs: Don't spu_acquire_saved unnecessarily in regs read

With most file readers (eg cat, dd), reading a context's regs file will
result in two reads: the first to read the data, and the second to
return EOF. Because each read performs a spu_acquire_saved, we end up
descheduling and re-scheduling the context twice.

This change does a simple check to see if we'd return EOF before
calling spu_acquire_saved(), saving the extra schedule operation.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>