]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tty: the rest, stop using tty_schedule_flip()
authorJiri Slaby <jslaby@suse.cz>
Mon, 22 Nov 2021 11:16:47 +0000 (12:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:05:47 +0000 (17:05 +0200)
commit b68b914494df4f79b4e9b58953110574af1cb7a2 upstream.

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>
arch/alpha/kernel/srmcons.c
drivers/s390/char/keyboard.h

index 72b59511e59aa350cc58d568cf896edba4f53602..bfeafff14c092c1c7c727bb01e60724fcd194caf 100644 (file)
@@ -58,7 +58,7 @@ srmcons_do_receive_chars(struct tty_port *port)
        } while((result.bits.status & 1) && (++loops < 10));
 
        if (count)
-               tty_schedule_flip(port);
+               tty_flip_buffer_push(port);
 
        return count;
 }
index a31f339211d58966b83b0e7864a1db54347f8dc2..b3172908f18c3ba51f55f65e08e1ad98418b57d3 100644 (file)
@@ -44,7 +44,7 @@ static inline void
 kbd_put_queue(struct tty_port *port, int ch)
 {
        tty_insert_flip_char(port, ch, 0);
-       tty_schedule_flip(port);
+       tty_flip_buffer_push(port);
 }
 
 static inline void
@@ -52,5 +52,5 @@ kbd_puts_queue(struct tty_port *port, char *cp)
 {
        while (*cp)
                tty_insert_flip_char(port, *cp++, 0);
-       tty_schedule_flip(port);
+       tty_flip_buffer_push(port);
 }