]> asedeno.scripts.mit.edu Git - linux.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)
commit9f65b81f36e31563c5a5e4df3b3b8bc7550b6030
treea4e3e295eba020c1f68072d40733cdb57f543e84
parent550ddadcc7580ec2a6c22d4ed04291bc6e2428fb
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