diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-04-30 17:55:56 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-23 13:12:32 +0300 |
commit | 550ddadcc7580ec2a6c22d4ed04291bc6e2428fb (patch) | |
tree | 107bfb0355a6943e6765293702828fe109310920 /drivers/tty/hvc/hvc_console.h | |
parent | cfb5946b55f1dfd19e042feae1fbff6041e25a98 (diff) | |
download | linux-550ddadcc7580ec2a6c22d4ed04291bc6e2428fb.tar.xz |
tty: hvc: hvc_write() may sleep
Rework the hvc_write loop to drop and re-take the spinlock on each
iteration, add a cond_resched. Don't bother with an initial hvc_push
initially, which makes the logic simpler -- just do a hvc_push on
each time around the loop.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/tty/hvc/hvc_console.h')
0 files changed, 0 insertions, 0 deletions