diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2012-01-17 11:52:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-03 09:19:00 -0800 |
commit | f0661faa597be0c7fb7612e8968c2f508e168adf (patch) | |
tree | ade6518f2a4d07fbf14744eb5699c6e323fa2668 /drivers/tty/serial/amba-pl010.c | |
parent | 47f7a05bd076caf9bc2d60555a1282517c6eca31 (diff) | |
download | lwn-f0661faa597be0c7fb7612e8968c2f508e168adf.tar.gz lwn-f0661faa597be0c7fb7612e8968c2f508e168adf.zip |
serial: amba-pl011: lock console writes against interrupts
commit ef605fdb33883d687cff5ba75095a91b313b4966 upstream.
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.
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@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl010.c')
0 files changed, 0 insertions, 0 deletions