summaryrefslogtreecommitdiff
path: root/include/asm-sparc64/stat.h
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-24 12:44:00 -0700
committerStefan Agner <stefan@agner.ch>2018-06-04 17:36:25 +0200
commit8500b6c5d691ddaba42ac2fa649c5699eaa70d35 (patch)
treeb9d9265c6001237db5dfc0c5284a61078f39568a /include/asm-sparc64/stat.h
parentc40abcef423ca42ebe3d629e131ed5df20632e33 (diff)
tty: serial: fsl_lpuart: lock port on console writetoradex_vf_4.1-next
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@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'include/asm-sparc64/stat.h')
0 files changed, 0 insertions, 0 deletions