Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: the rest, stop using tty_schedule_flip()

Since commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014,
tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). We are
going to remove the latter (as it is used less), so call the former in
the rest of the users.

Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: William Hubbs <w.d.hubbs@gmail.com>
Cc: Chris Brannon <chris@the-brannons.com>
Cc: Kirk Reiser <kirk@reisers.ca>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211122111648.30379-3-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby and committed by
Greg Kroah-Hartman
b68b9144 5f6a8515

+5 -5
+1 -1
arch/alpha/kernel/srmcons.c
··· 59 59 } while((result.bits.status & 1) && (++loops < 10)); 60 60 61 61 if (count) 62 - tty_schedule_flip(port); 62 + tty_flip_buffer_push(port); 63 63 64 64 return count; 65 65 }
+2 -2
drivers/accessibility/speakup/spk_ttyio.c
··· 88 88 } 89 89 90 90 if (!ldisc_data->buf_free) 91 - /* ttyio_in will tty_schedule_flip */ 91 + /* ttyio_in will tty_flip_buffer_push */ 92 92 return 0; 93 93 94 94 /* Make sure the consumer has read buf before we have seen ··· 312 312 mb(); 313 313 ldisc_data->buf_free = true; 314 314 /* Let TTY push more characters */ 315 - tty_schedule_flip(tty->port); 315 + tty_flip_buffer_push(tty->port); 316 316 317 317 return rv; 318 318 }
+2 -2
drivers/s390/char/keyboard.h
··· 56 56 kbd_put_queue(struct tty_port *port, int ch) 57 57 { 58 58 tty_insert_flip_char(port, ch, 0); 59 - tty_schedule_flip(port); 59 + tty_flip_buffer_push(port); 60 60 } 61 61 62 62 static inline void ··· 64 64 { 65 65 while (*cp) 66 66 tty_insert_flip_char(port, *cp++, 0); 67 - tty_schedule_flip(port); 67 + tty_flip_buffer_push(port); 68 68 }