diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2012-01-17 14:52:28 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-25 04:09:55 +0400 |
commit | ef605fdb33883d687cff5ba75095a91b313b4966 (patch) | |
tree | 7eea2b5b397d0b5373ec76035bf924d3885b2489 /crypto/algif_skcipher.c | |
parent | d8d8ffa477831b713ddfa2ad4d0ca545f3b567e5 (diff) | |
download | linux-ef605fdb33883d687cff5ba75095a91b313b4966.tar.xz |
serial: amba-pl011: lock console writes against interrupts
Protect against pl011_console_write() and the interrupt for
the console UART running concurrently on different CPUs.
Otherwise the console_write could spin for a long time
waiting for the UART to become not busy, while the other
CPU continuously services UART interrupts and keeps the
UART busy.
The checks for sysrq and oops_in_progress are taken
from 8250.c.
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Reviewed-by: Bibek Basu <bibek.basu@stericsson.com>
Reviewed-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'crypto/algif_skcipher.c')
0 files changed, 0 insertions, 0 deletions