aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tc
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-06-07 17:10:03 +1000
committerPaul Mackerras <paulus@samba.org>2006-06-09 21:24:18 +1000
commitb53744612f276ad20c5d7ef33ac991ec13101417 (patch)
tree937dbded1be6edd989e325fbc9b803931946c7f5 /drivers/tc
parent[PATCH] powerpc: Implement PR_[GS]ET_UNALIGN prctls for powerpc (diff)
downloadlinux-dev-b53744612f276ad20c5d7ef33ac991ec13101417.tar.xz
linux-dev-b53744612f276ad20c5d7ef33ac991ec13101417.zip
[PATCH] powerpc: Make rtas console _much_ faster
Currently the hvc_rtas driver is painfully slow to use. Our "benchmark" is ls -R /etc, which spits out about 27866 characters. The theoretical maximum speed would be about 2.2 seconds, the current code takes ~50 seconds. The core of the problem is that sometimes when the tty layer asks us to push characters the firmware isn't able to handle some or all of them, and so returns an error. The current code sees this and just returns to the tty code with the buffer half sent. The khvcd thread will eventually wake up and try to push more characters, which will usually work because by then the firmware's had time to make room. But the khvcd thread only wakes up every 10 milliseconds, which isn't fast enough. So change the khvcd thread logic so that if there's an incomplete write we yield() and then immediately try writing again. Doing so makes POLL_QUICK and POLL_WRITE synonymous, so remove POLL_QUICK. With this patch our "benchmark" takes ~2.8 seconds. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions