android_kernel_xiaomi_sm8450/drivers/tty/hvc
Nicholas Piggin 550ddadcc7 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>
2018-07-23 20:12:32 +10:00
..
hvc_console.c tty: hvc: hvc_write() may sleep 2018-07-23 20:12:32 +10:00
hvc_console.h tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
hvc_dcc.c tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
hvc_irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hvc_iucv.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
hvc_opal.c hvc_opal: don't set tb_ticks_per_usec in udbg_init_opal_common() 2018-06-03 20:43:34 +10:00
hvc_riscv_sbi.c tty: New RISC-V SBI console driver 2018-03-09 10:19:28 -08:00
hvc_rtas.c tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
hvc_udbg.c tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
hvc_vio.c tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
hvc_xen.c tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
hvcs.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
hvsi_lib.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hvsi.c tty: hvc: Remove redundant license text 2017-11-08 13:08:12 +01:00
Kconfig TTY/Serial driver patches for 4.17-rc1 2018-04-04 18:43:49 -07:00
Makefile TTY/Serial driver patches for 4.17-rc1 2018-04-04 18:43:49 -07:00