Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101783
b: refs/heads/master
c: 491a7a4
h: refs/heads/master
i:
  101781: aad1b00
  101779: 2704589
  101775: efbbbe7
v: v3
  • Loading branch information
Rune Torgersen authored and Kumar Gala committed Jul 14, 2008
1 parent 0da1a81 commit 67308c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fe9b1ea60bc209c8c87afcbb1c2ec0b28835aa4
refs/heads/master: 491a7a436cc90e97d666cfc025e141ca3186f86c
14 changes: 14 additions & 0 deletions trunk/drivers/serial/cpm_uart/cpm_uart_core.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,14 @@ static void cpm_uart_console_write(struct console *co, const char *s,
unsigned int i;
cbd_t __iomem *bdp, *bdbase;
unsigned char *cp;
unsigned long flags;
int nolock = oops_in_progress;

if (unlikely(nolock)) {
local_irq_save(flags);
} else {
spin_lock_irqsave(&pinfo->port.lock, flags);
}

/* Get the address of the host memory buffer.
*/
Expand Down Expand Up @@ -1030,6 +1038,12 @@ static void cpm_uart_console_write(struct console *co, const char *s,
;

pinfo->tx_cur = bdp;

if (unlikely(nolock)) {
local_irq_restore(flags);
} else {
spin_unlock_irqrestore(&pinfo->port.lock, flags);
}
}


Expand Down

0 comments on commit 67308c0

Please sign in to comment.