]> git.baikalelectronics.ru Git - kernel.git/commit
serial: samsung: don't check config for every character
authorDoug Anderson <dianders@chromium.org>
Mon, 21 Apr 2014 16:40:35 +0000 (09:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 22:38:21 +0000 (15:38 -0700)
commitb960f06dd3e73cf53ab90cb49968cd5705f41a94
tree060c678b26d846eab33e1861862c0191e27e269f
parentef551bfd7b9d59b66da8854d1d1922088539034c
serial: samsung: don't check config for every character

The s3c24xx_serial_console_putchar() is _only_ ever used by
s3c24xx_serial_console_write() and is called in a loop (indirectly
through uart_console_write()).  There's no reason to call
s3c24xx_port_configured() for every iteration through the loop.  Move
it outside the loop.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c