Skip to content
Commit 1031cfd5 authored by Dawid Niedzwiecki's avatar Dawid Niedzwiecki Committed by Christopher Friedt
Browse files

drivers: serial: ns16550: fill full fifo



Put the maximum number of bytes into Tx FIFO in the fill_fifo routine
to reduce CPU usage.

Previously, the THRE bit was checked in a loop, but, according to doc -
"In the FIFO mode, it is set when the XMIT FIFO is empty, and is
cleared when at least one byte is written to XMIT FIFO.", so only one
byte was transferred every interrupt. That was generating a big amount
of interrupts, which consumes CPU time.

Signed-off-by: default avatarDawid Niedzwiecki <dn@semihalf.com>
parent d3a55859
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment