From patchwork Thu Dec 14 05:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Jinchao X-Patchwork-Id: 178446 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8331518dys; Wed, 13 Dec 2023 21:21:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6L7W/ukUvKA7z2/yihHuPDpoU/P+k7dyhnsT88f3Po0J21/I20+YvKvQS4vcBwg+mBVoQ X-Received: by 2002:a05:6e02:b4f:b0:35d:57de:1e42 with SMTP id f15-20020a056e020b4f00b0035d57de1e42mr15230922ilu.6.1702531283748; Wed, 13 Dec 2023 21:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702531283; cv=none; d=google.com; s=arc-20160816; b=Heb2TRgyoOqUhpuURVJxVeLuF5DcDrEbkkcba+/Hr+gk935uX8S3lL1SuJ2jnfVLdx FSbRSr1G+PrnqCHImioeySh2zKJyUOBfrARRYH3n39tXa9Ka58z1KuChrrvEFypMNZgm MdaO4CjreTvQGnIDIKu0nDHBV1fQOlW31NRv1CT2ywR2fhWO5c4T1bGPbaWFSsVGmTGn WJp7hZI2ujd325GJ/hDqQ/ZWJKuqiwKBkVsyv3YicEOo6acOhEKgP5sjfdWsynbhPLm+ gEmvOyDuSI1lPfn4aU6jun9Ejg/w08dcMWaPVAsesf5jhlzJmPQ8JpCRZLih9OLyFJDz 7jpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=XQIqTgPL/Y1FcqaO9O6wge5VPxR58rI29FbKtjsCMjM=; fh=f40UFx4PIoN5VHjot5Te0Vsnl2epc2I3Vpkjl2f6MCo=; b=NiyaGIhYiz0RvBfLZ8XqrlBaCIDBV0sCyRwP1DCXqqkqBhsKgYMZPab5yYXb1gYjQ/ eSvM4DW1RAUhSPOhTQBJxLk+zot6w1NI+oPM547Z3NALf8FtpqTcy3+KpKS2WKXGkpaH yf9aP0y7p/tWJweULy5OZCtIjCvwIpZa3XsLMBfCZqLkP7XdOYWPDiZ/7yVQH2AdvpJd lRjm0GSNxIwixCqppb7lHcVGzmvWO7GVWMCJxwWqk2SIoBPZQDW47rfb0S8+PmRqckV9 lqDobFgkJK9+YLNRcP3czEMYepsdxI67liGDbwABywmVVqiN6GfuQiwSwXs2c9zst1sT wQ4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h2-20020a170902f54200b001d08ac11b93si11014161plf.374.2023.12.13.21.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 21:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E7957807798B; Wed, 13 Dec 2023 21:20:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443171AbjLNFUf (ORCPT + 99 others); Thu, 14 Dec 2023 00:20:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443172AbjLNFUd (ORCPT ); Thu, 14 Dec 2023 00:20:33 -0500 Received: from wxsgout04.xfusion.com (wxsgout04.xfusion.com [36.139.87.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EA0E109 for ; Wed, 13 Dec 2023 21:20:35 -0800 (PST) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4SrLF93WHFzB0S9n; Thu, 14 Dec 2023 13:17:01 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 14 Dec 2023 13:20:30 +0800 Date: Thu, 14 Dec 2023 13:20:29 +0800 From: Wang Jinchao To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , CC: , Subject: [PATCH] sched/fair: remove next_buddy_marked Message-ID: <202312141319+0800-wangjinchao@xfusion.com> MIME-Version: 1.0 Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00600.xfusion.com (10.32.133.213) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 21:20:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785233443617391722 X-GMAIL-MSGID: 1785233443617391722 Remove unused `next_buddy_marked` in `check_preempt_wakeup_fair` Signed-off-by: Wang Jinchao Reviewed-by: Vincent Guittot --- kernel/sched/fair.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d7a3c63a2171..d2028bfa4e94 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8210,7 +8210,6 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int struct task_struct *curr = rq->curr; struct sched_entity *se = &curr->se, *pse = &p->se; struct cfs_rq *cfs_rq = task_cfs_rq(curr); - int next_buddy_marked = 0; int cse_is_idle, pse_is_idle; if (unlikely(se == pse)) @@ -8227,7 +8226,6 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int if (sched_feat(NEXT_BUDDY) && !(wake_flags & WF_FORK)) { set_next_buddy(pse); - next_buddy_marked = 1; } /*