]> git.baikalelectronics.ru Git - kernel.git/commit
tty: hvc: introduce the hv_ops.flush operation for hvc drivers
authorNicholas Piggin <npiggin@gmail.com>
Mon, 30 Apr 2018 14:55:57 +0000 (00:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Jul 2018 10:13:20 +0000 (20:13 +1000)
commit759913efe94bcae462855903fc7b6191464d42d6
treea4e3e295eba020c1f68072d40733cdb57f543e84
parente242d343e613c17cf941b8c1a4f64da2b0d70786
tty: hvc: introduce the hv_ops.flush operation for hvc drivers

Use .flush to wait for drivers to flush their console outside of
the spinlock, to reduce lock/irq latencies.

Flush the hvc console driver after each write, which can help
messages make it out to the console after a crash.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/tty/hvc/hvc_console.c
drivers/tty/hvc/hvc_console.h