From: Rabin Vincent Date: Tue, 17 Jan 2012 10:52:28 +0000 (+0100) Subject: serial: amba-pl011: lock console writes against interrupts X-Git-Tag: v3.3-rc2~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef605fdb33883d687cff5ba75095a91b313b4966;p=pandora-kernel.git 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 Signed-off-by: Rabin Vincent Reviewed-by: Srinidhi Kasagar Reviewed-by: Bibek Basu Reviewed-by: Shreshtha Kumar Sahu Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed