mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
39d6144dcd
In virtual machines with virtual UARTs which have fictitious baud rates, it may be possible to drain the receive queue very quickly, without needing to DELAY after each character. Attempt to read (and discard) the receive queue as fast as possible, stopping for a DELAY only when LSR_RXRDY is no longer asserted; assume that we have finished draining the queue when LSR_RXRDY is asserted both before and after a DELAY. This speeds up the boot process in FreeBSD/Firecracker by 27 ms. Reviewed by: imp, jrtc27 Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D36184 |
||
---|---|---|
.. | ||
uart.h | ||
uart_bus.h | ||
uart_bus_acpi.c | ||
uart_bus_fdt.c | ||
uart_bus_isa.c | ||
uart_bus_pci.c | ||
uart_bus_puc.c | ||
uart_bus_scc.c | ||
uart_core.c | ||
uart_cpu.h | ||
uart_cpu_acpi.c | ||
uart_cpu_acpi.h | ||
uart_cpu_arm64.c | ||
uart_cpu_fdt.c | ||
uart_cpu_fdt.h | ||
uart_cpu_powerpc.c | ||
uart_cpu_x86.c | ||
uart_dbg.c | ||
uart_dev_imx.c | ||
uart_dev_imx.h | ||
uart_dev_lowrisc.c | ||
uart_dev_lowrisc.h | ||
uart_dev_msm.c | ||
uart_dev_msm.h | ||
uart_dev_mu.c | ||
uart_dev_mvebu.c | ||
uart_dev_ns8250.c | ||
uart_dev_ns8250.h | ||
uart_dev_pl011.c | ||
uart_dev_quicc.c | ||
uart_dev_snps.c | ||
uart_dev_ti8250.c | ||
uart_dev_z8530.c | ||
uart_if.m | ||
uart_ppstypes.h | ||
uart_subr.c | ||
uart_tty.c |