]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
serial: bfin_5xx: remove redundant SSYNC to improve TX speed
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 27 Oct 2010 08:16:48 +0000 (04:16 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 11 Nov 2010 19:06:08 +0000 (11:06 -0800)
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>
drivers/serial/bfin_5xx.c

index c8ca3b43487dadf38236f51266c3451a598b3e4c..a454e427c94987915e8fded0ab98de944d668229 100644 (file)
@@ -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)