* [PATCH] cpm_uart: added missed spinlock initialization
@ 2005-08-11 15:37 Vitaly Bordug
0 siblings, 0 replies; only message in thread
From: Vitaly Bordug @ 2005-08-11 15:37 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-embedded list
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
The lack of spin_lock_init causes badness in the preempt configuration.
The fix is trivial.
Signed-off-by: Vitaly Bordug <vbordug@ru•mvista.com>
--
Sincerely,
Vitaly
[-- Attachment #2: cpm_uart_spinlock.patch --]
[-- Type: text/x-patch, Size: 440 bytes --]
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
@@ -1045,6 +1045,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] only message in thread
only message in thread, other threads:[~2005-08-11 15:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-11 15:37 [PATCH] cpm_uart: added missed spinlock initialization Vitaly Bordug
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox