From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: - uartlite-speed-up-console-output.patch removed from -mm tree Date: Mon, 12 Nov 2007 20:08:09 -0800 Message-ID: <200711130408.lAD48891025286@imap1.linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from smtp2.linux-foundation.org ([207.189.120.14]:41525 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755701AbXKMEQz (ORCPT ); Mon, 12 Nov 2007 23:16:55 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: grant.likely@secretlab.ca, benh@kernel.crashing.org, jwboyer@linux.vnet.ibm.com, paulus@samba.org, mm-commits@vger.kernel.org The patch titled Uartlite: speed up console output has been removed from the -mm tree. Its filename was uartlite-speed-up-console-output.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: Uartlite: speed up console output From: Grant Likely Change the wait_tx routine to call cpu_relax() instead of udelay() to reduce console output latency and test for the TXFULL bit instead of TXEMPTY. That way the FIFO doesn't need to by 100% flushed before writing the next character. Signed-off-by: Grant Likely Cc: Josh Boyer Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton --- drivers/serial/uartlite.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff -puN drivers/serial/uartlite.c~uartlite-speed-up-console-output drivers/serial/uartlite.c --- a/drivers/serial/uartlite.c~uartlite-speed-up-console-output +++ a/drivers/serial/uartlite.c @@ -329,12 +329,14 @@ static struct uart_ops ulite_ops = { static void ulite_console_wait_tx(struct uart_port *port) { int i; + u8 val; - /* wait up to 10ms for the character(s) to be sent */ - for (i = 0; i < 10000; i++) { - if (readb(port->membase + ULITE_STATUS) & ULITE_STATUS_TXEMPTY) + /* Spin waiting for TX fifo to have space available */ + for (i = 0; i < 100000; i++) { + val = readb(port->membase + ULITE_STATUS); + if ((val & ULITE_STATUS_TXFULL) == 0) break; - udelay(1); + cpu_relax(); } } _ Patches currently in -mm which might be from grant.likely@secretlab.ca are origin.patch