Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp478196imn; Wed, 27 Jul 2022 11:19:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbtCvSedTb0pm7kgpDUKfAZV2yR/eNJrOvD8h3i5EXXKGUBIKDgXEmO4uhkgBGzfEYMmb4 X-Received: by 2002:a05:6402:371a:b0:43a:ece9:ab8e with SMTP id ek26-20020a056402371a00b0043aece9ab8emr24071732edb.126.1658945945595; Wed, 27 Jul 2022 11:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658945945; cv=none; d=google.com; s=arc-20160816; b=08jW0MuachywToeNEQCFRVxrlxyd4PBETS7NVQcv7KM4jERo/AkNPg64Y+wf4ih9fs w4yU0Mb7J2xWQmF96ObKII8tI5XztAgHEhNgYTMYwKewDa2yIE3UT2Hp5oB7YVz3Zgwd acFf29jsugeljPx+QZR0y0qftg/anYzTjsivqynJ79G9Q5w9iPp5w6P4BXZq/tKg4O5L Ujn/e3p2AMKy91u0fLdpRWucoteu7qempDxo3fJ7C+TEToZtLzyXFlnAknWTHAyUgscn cw2a/++Jmzv1ZsT6USLdQsBOBQ7i0EXqIPkYYOLoszUc4i9b+t5Nul1Yjv+zXSDK4Qod MpLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kHweCkgkLRELpPFpanyTb4Hs5Zp4uqtOiv6Zi9fhzyY=; b=CbXrcJCbyigK8DUmYQIB9I8RqdYD/uvqMfqmBqlSb9+TiZxwFc78pUwOJfqEnAHxoU 6B/r0HGgw0UPQiVkYQHUNeIWkSGa/JVjDPXKDAEQU9MV//q5IJxTuLhFlopoMl7oYsJx HlCVxq7lTKnOw99r/dFhcV5hSBOjUHf7o2KCVvlGvMiRNethvveGcB4BnNPASmRhSCL0 +CMuwt/10/vi2Cdj8fUqWiYUeDkXZzVjJU1t6S4faWEIT0DglvuurBl/mbmghuve2V5C 57YnrfkbqoMkirDF62fWe80U4HIHBOmkjD1sSFB9g1KqM3fJ/ZR3zs7StGapqVngi0Xe Ewjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NakBvEVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr2-20020a170906d54200b0072b68ed1a49si5600690ejc.870.2022.07.27.11.18.40; Wed, 27 Jul 2022 11:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NakBvEVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238792AbiG0Qhp (ORCPT + 99 others); Wed, 27 Jul 2022 12:37:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238672AbiG0QgN (ORCPT ); Wed, 27 Jul 2022 12:36:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B64356BB6; Wed, 27 Jul 2022 09:28:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C2313B821C6; Wed, 27 Jul 2022 16:27:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5DF1C433D6; Wed, 27 Jul 2022 16:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658939252; bh=mOFED5k46BSdcCPPiEfgP6QcLJrPfdghTqkdp+JAGMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NakBvEVCwcvPxmgphK6YLXgKgmVQE1GtdJfqjCFPLxG+/rULjZm01ySjlXSf5Cuc1 a6wBADKYr0fjKlN6TWbhEuWdeIl443Co9QP0ZL+ArjmY2mo8i6vXk+X4v0nlhWl66v D5go/k57ktCGtN1SFyUKzEeMxjVi5iRTd8aqmqM8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexander Gordeev , Johan Hovold , Jiri Slaby Subject: [PATCH 4.19 54/62] tty: the rest, stop using tty_schedule_flip() Date: Wed, 27 Jul 2022 18:11:03 +0200 Message-Id: <20220727161006.261681396@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727161004.175638564@linuxfoundation.org> References: <20220727161004.175638564@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Slaby 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 Cc: Ivan Kokshaysky Cc: Matt Turner Cc: William Hubbs Cc: Chris Brannon Cc: Kirk Reiser Cc: Samuel Thibault Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: Alexander Gordeev Reviewed-by: Johan Hovold Signed-off-by: Jiri Slaby Link: https://lore.kernel.org/r/20211122111648.30379-3-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman --- arch/alpha/kernel/srmcons.c | 2 +- drivers/s390/char/keyboard.h | 4 ++-- drivers/staging/speakup/spk_ttyio.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) --- a/arch/alpha/kernel/srmcons.c +++ b/arch/alpha/kernel/srmcons.c @@ -59,7 +59,7 @@ srmcons_do_receive_chars(struct tty_port } while((result.bits.status & 1) && (++loops < 10)); if (count) - tty_schedule_flip(port); + tty_flip_buffer_push(port); return count; } --- a/drivers/s390/char/keyboard.h +++ b/drivers/s390/char/keyboard.h @@ -56,7 +56,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 @@ -64,5 +64,5 @@ kbd_puts_queue(struct tty_port *port, ch { while (*cp) tty_insert_flip_char(port, *cp++, 0); - tty_schedule_flip(port); + tty_flip_buffer_push(port); } --- a/drivers/staging/speakup/spk_ttyio.c +++ b/drivers/staging/speakup/spk_ttyio.c @@ -88,7 +88,7 @@ static int spk_ttyio_receive_buf2(struct } if (!ldisc_data->buf_free) - /* ttyio_in will tty_schedule_flip */ + /* ttyio_in will tty_flip_buffer_push */ return 0; /* Make sure the consumer has read buf before we have seen @@ -321,7 +321,7 @@ static unsigned char ttyio_in(int timeou mb(); ldisc_data->buf_free = true; /* Let TTY push more characters */ - tty_schedule_flip(speakup_tty->port); + tty_flip_buffer_push(speakup_tty->port); return rv; }