diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-10-16 11:11:12 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-10-21 11:13:43 +1100 |
commit | f027faa231f38c02e949352735eac76f29090809 (patch) | |
tree | 1d26e6f406d473f7eee9cb224dcffca613f6d1b9 /arch/frv/mb93090-mb00 | |
parent | 14f693eeb5b16bc47ffa38d8b8838a654aedd53f (diff) |
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>
Diffstat (limited to 'arch/frv/mb93090-mb00')
0 files changed, 0 insertions, 0 deletions