All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpm_uart: Fix spinlock initialization
@ 2005-08-12 16:32 Kumar Gala
  2005-08-12 19:46 ` Russell King
  0 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2005-08-12 16:32 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linuppc-embedded, vbordug

The lack of spin_lock_init causes badness in the preempt configuration.

Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>

---
commit d6dee08c314c1952921adc99e8f5ff6c332341ef
tree 96ca76ab7d75cf808287af50c88ed7d1aed49923
parent 51a75dcea8fe0407f06467de36e258616cda68f9
author Kumar K. Gala <kumar.gala@freescale.com> Fri, 12 Aug 2005 11:26:44 -0500
committer Kumar K. Gala <kumar.gala@freescale.com> Fri, 12 Aug 2005 11:26:44 -0500

 drivers/serial/cpm_uart/cpm_uart_core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c
--- a/drivers/serial/cpm_uart/cpm_uart_core.c
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c
@@ -1087,6 +1087,7 @@ static int __init cpm_uart_console_setup
 	port =
 	    (struct uart_port *)&cpm_uart_ports[cpm_uart_port_map[co->index]];
 	pinfo = (struct uart_cpm_port *)port;
+	spin_lock_init(&port->lock);
 
 	pinfo->flags |= FLAG_CONSOLE;
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-13 19:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12 16:32 [PATCH] cpm_uart: Fix spinlock initialization Kumar Gala
2005-08-12 19:46 ` Russell King
2005-08-12 19:54   ` Kumar Gala
2005-08-12 22:03   ` Alan Cox
2005-08-12 21:58     ` David S. Miller
2005-08-13 11:41       ` Alan Cox
2005-08-13 19:15   ` Russell King

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.