summaryrefslogtreecommitdiffstats
path: root/sys/modules/smbfs
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-04-03 01:21:10 +0000
committermarcel <marcel@FreeBSD.org>2007-04-03 01:21:10 +0000
commitcd78e19f8570ba9c7ad556f67ad1ac60bbdb59ac (patch)
tree2c12043ab23fa84e4fb5a75f863be90e1757d46f /sys/modules/smbfs
parent993cec31de8c550802ff6e570b2bcf3c032339f6 (diff)
downloadFreeBSD-src-cd78e19f8570ba9c7ad556f67ad1ac60bbdb59ac.zip
FreeBSD-src-cd78e19f8570ba9c7ad556f67ad1ac60bbdb59ac.tar.gz
Don't use a time-limiting loop that's defined in terms of the baudrate
in the putc() method. Likewise, in the getc() method, don't check for received characters with an interval defined in terms of the baudrate. In both cases it works equally well to implement a fixed delay. More importantly, it avoids calculating a delay that's roughly 1/10th the time it takes to send/receive a character. The calculation is costly and happens for every character sent or received, affecting low-level console or debug port performance significantly. Secondly, when the RCLK is not available or unreliable, the delays could disrupt normal operation. The fixed delay is 1/10th the time it takes to send a character at 230400 bps.
Diffstat (limited to 'sys/modules/smbfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud