cpm_uart: Fix cpm uart corruption with PREEMPT_RT
authorRune Torgersen <runet@innovsys.com>
Tue, 20 May 2008 19:39:17 +0000 (14:39 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 14 Jul 2008 12:55:29 +0000 (07:55 -0500)
commit491a7a436cc90e97d666cfc025e141ca3186f86c
tree9cc5b8ec60655fcceeb0df740c14b11362e8ddf1
parent0fe9b1ea60bc209c8c87afcbb1c2ec0b28835aa4
cpm_uart: Fix cpm uart corruption with PREEMPT_RT

Fix CPM serial port corruption when running with CONFIG_PREEMPT_RT.
Userland usage of console, and kernel printf's were stepping on each others toes.
Also only take lock if not in an oops.

Signed-off-by: Rune Torgersen <runet@innovsys.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/serial/cpm_uart/cpm_uart_core.c [changed mode: 0644->0755]