Skip to content

Commit

Permalink
serial: bfin_5xx: remove redundant SSYNC to improve TX speed
Browse files Browse the repository at this point in the history
We don't need to force a SSYNC here as the LSR register will already
be updated by the time we get back to reading it.  This speeds up TX
throughput and lowers general system overhead (since SSYNC is system
wide, not peripheral-specific).

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Sonic Zhang authored and Greg Kroah-Hartman committed Nov 11, 2010
1 parent b610099 commit 001a05d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/serial/bfin_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ static void bfin_serial_tx_chars(struct bfin_serial_port *uart)
UART_PUT_CHAR(uart, xmit->buf[xmit->tail]);
xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
uart->port.icount.tx++;
SSYNC();
}

if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
Expand Down

0 comments on commit 001a05d

Please sign in to comment.