summaryrefslogtreecommitdiff
path: root/drivers/tty/hvc/hvc_console.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-04-30 17:55:56 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-07-23 13:12:32 +0300
commit550ddadcc7580ec2a6c22d4ed04291bc6e2428fb (patch)
tree107bfb0355a6943e6765293702828fe109310920 /drivers/tty/hvc/hvc_console.h
parentcfb5946b55f1dfd19e042feae1fbff6041e25a98 (diff)
downloadlinux-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