lkml.org 
[lkml]   [2021]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/16] tty: arch/, stop using tty_flip_buffer_push
    Date
    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 former, so call the latter directly in arch/.

    Signed-off-by: Jiri Slaby <jslaby@suse.cz>
    Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
    Cc: Helge Deller <deller@gmx.de>
    Cc: Jeff Dike <jdike@addtoit.com>
    Cc: Richard Weinberger <richard@nod.at>
    Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
    Cc: Chris Zankel <chris@zankel.net>
    Cc: Max Filippov <jcmvbkbc@gmail.com>
    Cc: linux-parisc@vger.kernel.org
    Cc: linux-um@lists.infradead.org
    Cc: linux-xtensa@linux-xtensa.org
    ---
    arch/parisc/kernel/pdc_cons.c | 2 +-
    arch/um/drivers/chan_kern.c | 2 +-
    arch/xtensa/platforms/iss/console.c | 2 +-
    3 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/arch/parisc/kernel/pdc_cons.c b/arch/parisc/kernel/pdc_cons.c
    index 2661cdd256ae..221af0ab3382 100644
    --- a/arch/parisc/kernel/pdc_cons.c
    +++ b/arch/parisc/kernel/pdc_cons.c
    @@ -128,7 +128,7 @@ static void pdc_console_poll(struct timer_list *unused)
    }

    if (count)
    - tty_flip_buffer_push(&tty_port);
    + tty_schedule_flip(&tty_port);

    if (pdc_cons.flags & CON_ENABLED)
    mod_timer(&pdc_console_timer, jiffies + PDC_CONS_POLL_DELAY);
    diff --git a/arch/um/drivers/chan_kern.c b/arch/um/drivers/chan_kern.c
    index 62997055c454..62164db99f99 100644
    --- a/arch/um/drivers/chan_kern.c
    +++ b/arch/um/drivers/chan_kern.c
    @@ -566,5 +566,5 @@ void chan_interrupt(struct line *line, int irq)
    return;
    }
    out:
    - tty_flip_buffer_push(port);
    + tty_schedule_flip(port);
    }
    diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c
    index 81d7c7e8f7e9..8d8580d1ef56 100644
    --- a/arch/xtensa/platforms/iss/console.c
    +++ b/arch/xtensa/platforms/iss/console.c
    @@ -84,7 +84,7 @@ static void rs_poll(struct timer_list *unused)
    }

    if (i)
    - tty_flip_buffer_push(port);
    + tty_schedule_flip(port);
    if (rd)
    mod_timer(&serial_timer, jiffies + SERIAL_TIMER_VALUE);
    spin_unlock(&timer_lock);
    --
    2.33.0
    \
     
     \ /
      Last update: 2021-09-14 11:15    [W:3.097 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site