diff options
author | Stefan Agner <stefan@agner.ch> | 2017-03-24 19:33:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-31 16:56:10 +0200 |
commit | abf1e0a98083fd0a1069ce68ad8c92bfb97a57db (patch) | |
tree | 5ee282585208c57515e049d221f7c975394c9720 /arch/arm64 | |
parent | serial: altera_uart: add earlycon support (diff) | |
download | linux-abf1e0a98083fd0a1069ce68ad8c92bfb97a57db.tar.xz linux-abf1e0a98083fd0a1069ce68ad8c92bfb97a57db.zip |
tty: serial: fsl_lpuart: lock port on console write
The console write code is not entirely race free (e.g. the operations
to disabling the UART interrupts are not atomic) hence locking is
required. This has been become apparent with the PREEMPT RT patchset
applied: With the fully preemptible kernel configuration the system
often ended up in a freeze already at startup.
Disable interrupts and lock using read_lock_irqsave. Try to lock in
the sysrq/oops case, but don't bother if locking fails.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions