tty: drivers/tty/, stop using tty_schedule_flip()
authorJiri Slaby <jslaby@suse.cz>
Mon, 22 Nov 2021 11:16:46 +0000 (12:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:25:31 +0000 (17:25 +0200)
commit 5f6a85158ccacc3f09744b3aafe8b11ab3b6c6f6 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
drivers/tty/.

Cc: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211122111648.30379-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/goldfish.c
drivers/tty/moxa.c
drivers/tty/serial/lpc32xx_hs.c
drivers/tty/vt/keyboard.c
drivers/tty/vt/vt.c

index 0e32920..7ca3cd8 100644 (file)
@@ -151,7 +151,7 @@ static irqreturn_t goldfish_tty_interrupt(int irq, void *dev_id)
        address = (unsigned long)(void *)buf;
        goldfish_tty_rw(qtty, address, count, 0);
 
-       tty_schedule_flip(&qtty->port);
+       tty_flip_buffer_push(&qtty->port);
        return IRQ_HANDLED;
 }
 
index bf17e90..a29ec5a 100644 (file)
@@ -1383,7 +1383,7 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle,
                if (inited && !tty_throttled(tty) &&
                                MoxaPortRxQueue(p) > 0) { /* RX */
                        MoxaPortReadData(p);
-                       tty_schedule_flip(&p->port);
+                       tty_flip_buffer_push(&p->port);
                }
        } else {
                clear_bit(EMPTYWAIT, &p->statusflags);
@@ -1408,7 +1408,7 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle,
 
        if (tty && (intr & IntrBreak) && !I_IGNBRK(tty)) { /* BREAK */
                tty_insert_flip_char(&p->port, 0, TTY_BREAK);
-               tty_schedule_flip(&p->port);
+               tty_flip_buffer_push(&p->port);
        }
 
        if (intr & IntrLine)
index b199d78..07c4161 100644 (file)
@@ -341,7 +341,7 @@ static irqreturn_t serial_lpc32xx_interrupt(int irq, void *dev_id)
                       LPC32XX_HSUART_IIR(port->membase));
                port->icount.overrun++;
                tty_insert_flip_char(tport, 0, TTY_OVERRUN);
-               tty_schedule_flip(tport);
+               tty_flip_buffer_push(tport);
        }
 
        /* Data received? */
index c7fbbcd..3700cd0 100644 (file)
@@ -324,13 +324,13 @@ int kbd_rate(struct kbd_repeat *rpt)
 static void put_queue(struct vc_data *vc, int ch)
 {
        tty_insert_flip_char(&vc->port, ch, 0);
-       tty_schedule_flip(&vc->port);
+       tty_flip_buffer_push(&vc->port);
 }
 
 static void puts_queue(struct vc_data *vc, const char *cp)
 {
        tty_insert_flip_string(&vc->port, cp, strlen(cp));
-       tty_schedule_flip(&vc->port);
+       tty_flip_buffer_push(&vc->port);
 }
 
 static void applkey(struct vc_data *vc, int key, char mode)
@@ -584,7 +584,7 @@ static void fn_inc_console(struct vc_data *vc)
 static void fn_send_intr(struct vc_data *vc)
 {
        tty_insert_flip_char(&vc->port, 0, TTY_BREAK);
-       tty_schedule_flip(&vc->port);
+       tty_flip_buffer_push(&vc->port);
 }
 
 static void fn_scroll_forw(struct vc_data *vc)
index 55283a7..dfc1f4b 100644 (file)
@@ -1833,7 +1833,7 @@ static void csi_m(struct vc_data *vc)
 static void respond_string(const char *p, size_t len, struct tty_port *port)
 {
        tty_insert_flip_string(port, p, len);
-       tty_schedule_flip(port);
+       tty_flip_buffer_push(port);
 }
 
 static void cursor_report(struct vc_data *vc, struct tty_struct *tty)