From patchwork Fri Oct 20 08:09:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 155868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp899123vqb; Fri, 20 Oct 2023 01:10:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnqVeDJEbnFA1j+RvyA2LjBdcInHkLEviWx1vGja4jZsXa+LomK27ltz/V5V1+QBgR6sR8 X-Received: by 2002:a05:6358:4296:b0:134:dc90:b7d1 with SMTP id s22-20020a056358429600b00134dc90b7d1mr1397417rwc.25.1697789413124; Fri, 20 Oct 2023 01:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697789413; cv=none; d=google.com; s=arc-20160816; b=AErWf+1MgyEP51ED3Q4sKiTADD8/5plZMb7kIl0soBpNwXD8lhfsyfuCVmie5sxrcB qoqXLHUDbEFRnxszCz0frjxmN39PjeRUwF9WF83hrH3d6huUZl55G9j4k/qe5EfC+xVK 4xDRxQujObJ9R5gKsMqKvMO9KxYOdCn95A9vRBjPXSM3WWlM+JrGgETqJogh6SxO4xBH YlnVXyY4mJ0Ay+YCcIOcgeJ4SVyzCxEmENhZ2VPdGWB+hfwaoZh8BUUgjq1YzC9OKjCY ktcENwpYHLaB7mxmY0x/efZ1ySeAYkIVzCLzzn1EN1c0wUNnX4G4VyTIAoURnzyvLzsO lh1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=UPEvGpbNwJgVfjs/zEfGkPaGgx1rd7ziO+VrIH87IDY=; fh=0D9bhR7r9AyXLWnPiEPTtHsw2FqMIiX8iuerKDteNVg=; b=m0riuIDIVltJFYqB3KLmMzL88OPMYjl9Ppe4gBL/Fs/ucvdQjCmcq+3AF4gY4UU6ec h1lsjTTJ8kLCEfPWo2EvAP0m6ckFdLe3jG1wT0JN75OCop6tp7UnWCXEzYPKg3A6ywl4 1cgpYVFQnXBN9uRbXkA/zZg4AZFO//eU78r70EvZyeckJbpimGkxfQxQ+7SdWbSDp/VR BAvLGc8bS591KQVLHeOmenm3syTdSRh+5pj6wYyJejMk6Cz+dhahZVRdzQ2Zm/XYQi28 1KAh1aFqwk21N61OXho0Nc5iy89X+V5zb8Wmojc5qjfazG8x6VxNWtu9TPNQcP33tl4J c02w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oWUf3lQV; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c67-20020a633546000000b005b7160263efsi1279848pga.489.2023.10.20.01.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oWUf3lQV; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BDD0181F7083; Fri, 20 Oct 2023 01:10:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235659AbjJTIJ6 (ORCPT + 25 others); Fri, 20 Oct 2023 04:09:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235647AbjJTIJ5 (ORCPT ); Fri, 20 Oct 2023 04:09:57 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6864E8; Fri, 20 Oct 2023 01:09:55 -0700 (PDT) Date: Fri, 20 Oct 2023 08:09:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697789394; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UPEvGpbNwJgVfjs/zEfGkPaGgx1rd7ziO+VrIH87IDY=; b=oWUf3lQVoJbGA1WBp8cr8HWmfKeMKWm2kKUhv91JXpTQ05iX3aNx3ZhYmh4k6H4ogkzAkF t82QCHqN3h0BIM5VnJY0dsp1tQWHccqyZKzpYjo0cQo1yrSE0paEq3Nf9iYV/CziCRuL4x v8i2EDTgJnYTfG4EfWUSxfCVihbr844kISyxZ3zXz19KMXzqIJ/wkJ0Xjzp8vZwDvvR5xG PgeXSms1NUKCU4xNc5v0BCdhklcu+UT3AKgwH5C5VaUOrzMs3L10Ir1Qv3iLa6h3Vc84HZ m+0nb3R/ewt24EY+Qwv1YZUpyri/K1lZiavtfnA04Sk0lC4hw2LfRAKzu4EdnQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697789394; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UPEvGpbNwJgVfjs/zEfGkPaGgx1rd7ziO+VrIH87IDY=; b=Yrcs53P8MiTymZPfPxptbZ80LQoEc17rbJrEIp2kY4yyI0+MfwJOGu6yptqL8KNsj1KxIr 3PlItku92rOL1zDA== From: "tip-bot2 for Yiwei Lin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Remove unused 'curr' argument from pick_next_entity() Cc: Yiwei Lin , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231020055617.42064-1-s921975628@gmail.com> References: <20231020055617.42064-1-s921975628@gmail.com> MIME-Version: 1.0 Message-ID: <169778939334.3135.9946072369314683656.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:10:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780261231401057286 X-GMAIL-MSGID: 1780261231401057286 The following commit has been merged into the sched/core branch of tip: Commit-ID: 950f26dc82bce4139f762e365843b0338ca6cbfe Gitweb: https://git.kernel.org/tip/950f26dc82bce4139f762e365843b0338ca6cbfe Author: Yiwei Lin AuthorDate: Fri, 20 Oct 2023 13:56:17 +08:00 Committer: Ingo Molnar CommitterDate: Fri, 20 Oct 2023 10:00:55 +02:00 sched/fair: Remove unused 'curr' argument from pick_next_entity() The 'curr' argument of pick_next_entity() has become unused after the EEVDF changes. [ mingo: Updated the changelog. ] Signed-off-by: Yiwei Lin Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20231020055617.42064-1-s921975628@gmail.com --- kernel/sched/fair.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 393d0dc..ebee058 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5256,7 +5256,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) * 4) do not run the "skip" process, if something else is available */ static struct sched_entity * -pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr) +pick_next_entity(struct cfs_rq *cfs_rq) { /* * Enabling NEXT_BUDDY will affect latency but not fairness. @@ -8160,7 +8160,7 @@ again: goto again; } - se = pick_next_entity(cfs_rq, curr); + se = pick_next_entity(cfs_rq); cfs_rq = group_cfs_rq(se); } while (cfs_rq); @@ -8223,7 +8223,7 @@ again: } } - se = pick_next_entity(cfs_rq, curr); + se = pick_next_entity(cfs_rq); cfs_rq = group_cfs_rq(se); } while (cfs_rq); @@ -8262,7 +8262,7 @@ simple: put_prev_task(rq, prev); do { - se = pick_next_entity(cfs_rq, NULL); + se = pick_next_entity(cfs_rq); set_next_entity(cfs_rq, se); cfs_rq = group_cfs_rq(se); } while (cfs_rq);