All of lore.kernel.org
 help / color / mirror / Atom feed
* - uartlite-speed-up-console-output.patch removed from -mm tree
@ 2007-11-13  4:08 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-11-13  4:08 UTC (permalink / raw)
  To: grant.likely, benh, jwboyer, paulus, mm-commits


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 <grant.likely@secretlab.ca>

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 <grant.likely@secretlab.ca>
Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-13  4:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13  4:08 - uartlite-speed-up-console-output.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.