Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5773910rdb; Wed, 13 Dec 2023 21:21:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/vxetlPy9i9FM+EDAGW++m0CBrM9hFFKnvzP+Atm1dV54Rqicuw3nQ1MtMTsCkU7lDqA5 X-Received: by 2002:a05:6808:3847:b0:3ba:905:df0a with SMTP id ej7-20020a056808384700b003ba0905df0amr7382224oib.118.1702531295981; Wed, 13 Dec 2023 21:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702531295; cv=none; d=google.com; s=arc-20160816; b=U/JoDOGlGfB1amIVYDB3N+Hbf9WvDlWpm7t5jTE803H2uu8rgTW0UXGrWO7FcJtlIi F3rC6b6BbuA2nJrgNbqg5DP7aUopmQ19LD6aGEFlP/PazDdZi3AbYS9eX5IR0UFqMIyK INIOspWLzXnShCxuapY7/2N6hWe4zvmxwbLl7i7fVncOV4qYd+9DkfRuj8xsp0ydVTFO vqdRbc3MX+BKS1FyBfw6GyKIcE5Jp8vTT+Z1xf5t/vFoGeF1rtULjgb8DJUB3uEasKdU dzXDinPzEROM+njuOo+Xkf88oA7WJfAm/tC8THiaCVkKpB9DVtlgBweuZUTbInkZypTw cflw== 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 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z9-20020a170903018900b001d364196057si886764plg.486.2023.12.13.21.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 21:21:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 16E2D80775BA; Wed, 13 Dec 2023 21:20:46 -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-Type: text/plain; charset="us-ascii" 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:46 -0800 (PST) Remove unused `next_buddy_marked` in `check_preempt_wakeup_fair` Signed-off-by: Wang Jinchao --- 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; } /* -- 2.40.0