From patchwork Fri Oct 20 14:02:15 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: 156119 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp1077354vqb; Fri, 20 Oct 2023 07:02:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyLaggPXuXptNGFHg+ftX4B8SZnA0ubuPSgICvStfOaNQ8m7QYnKzUz6XeYkJn8l4gKHtL X-Received: by 2002:a17:90a:ff11:b0:27d:3c62:6342 with SMTP id ce17-20020a17090aff1100b0027d3c626342mr2817175pjb.4.1697810569553; Fri, 20 Oct 2023 07:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697810569; cv=none; d=google.com; s=arc-20160816; b=IXCYFeBpPOCZ2pN01K1giMjgBZfiVS27fD1GJyGu050tA9akYzvXKmvMP1xK0Ql/Ro KtN+Wn2hcwXq/TqL0YVMNviv64TvuFZpSufAVYQBUu4qD0hqldcWZ/ONiQfoT3kgCNcO 14RVV7QzgjQJg9ifXQjLXElz7M8W35kIY7RW1tRUL7n7zdBhO1piiVWNKXs8KHCyQEsY el2w63jRCm/uLlZA9DTRkX3wmQk8PeR8dsO4j8ovZ8atFPdxrj+63uDi8SYEltLbeU5+ ntmYHfRwQBN0O54i7N+uAm8vjagRQMsOYktzgrbE4q/CDhUS1NvrK0Ri7KgFq7rzEGMv jC/g== 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=M3BFQLwd1nsCoUjwgSyCrkcS+5Ut7oCrmQxF+w8tufw=; fh=0D9bhR7r9AyXLWnPiEPTtHsw2FqMIiX8iuerKDteNVg=; b=EPMPqHd/fWoCZPDdN359PMKsQ+keBg0kFtvMuhaOmt7KIGx9ZPZhPqZf2Q+HLj2tit pZPXnbZ3uhDFWZ27QH67x7TZbl+u/o7vYvS26Zsa3LOrioOdqM76+3b1F0IIyYMpSX7F GULT4MqO7bop2vDE+2nnpc1ZT+qUWK4GzQ/llVbIzyNUkcU30EVixE+eQWz9P/YmnvAn ZrVeehdzXrRH5Tz7w3+fykD2o1ULJYQBTgxMGj/GUew5Hlz0GYt7ntsGA8jQSl0W/cdB c+xdr8qQTqZehyCCNjTxgyhrxikwJmKFuC4HNPOAlI7MeEkfLMOapCQZCT0Ll+1iz/Ko eOeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LRNVNlcL; 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ha15-20020a17090af3cf00b002774e11ca41si4481564pjb.67.2023.10.20.07.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:02:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LRNVNlcL; 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:8 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 fry.vger.email (Postfix) with ESMTP id 2041B8203659; Fri, 20 Oct 2023 07:02:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377481AbjJTOCW (ORCPT + 26 others); Fri, 20 Oct 2023 10:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377376AbjJTOCU (ORCPT ); Fri, 20 Oct 2023 10:02:20 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A57D619E; Fri, 20 Oct 2023 07:02:18 -0700 (PDT) Date: Fri, 20 Oct 2023 14:02:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697810536; 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=M3BFQLwd1nsCoUjwgSyCrkcS+5Ut7oCrmQxF+w8tufw=; b=LRNVNlcL7feP1sW8Gbdq+hEqwnQZG/XZ+U70lsG2R21lfA4jmN/8Q7DZTdZMUzIezD6tz/ vlH6NmB/+vr7NnVnUzbyqnvlFfsfv2xR8SMfTa7VxOt995YEbIYxZVk0imYLHrkc2D0QVI n2Ig7MqI9gbt8XyQo07w93hZ21+4Z0jQ9ZMzYiHjE6FopzNdWiiaDiXhhxqLBNH+z3bj3X TnxdbmqFXs/kCnK8zVi0NqkEuE1P8Aexi5tiJBu7XOcP8RA8zXDooMZSsZwoseKqyJPdBJ CCkkuai2PZHF3tfOpzBF/lXLg/Ue+a96Vm5F5iJFWJKLQp5EEH3X8O1a3CyuXQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697810536; 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=M3BFQLwd1nsCoUjwgSyCrkcS+5Ut7oCrmQxF+w8tufw=; b=wle3S+SINXJJebnd8xGIJmTzxtVszF52tLR1lrwgw9w2NcD2taEzmE3u1KpvFVoQjJgt8x 03e5ikYpmILdE/Dw== 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: <169781053589.3135.7556580446990782690.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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:02:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780261231401057286 X-GMAIL-MSGID: 1780283415944542898 The following commit has been merged into the sched/core branch of tip: Commit-ID: 4c456c9ad334a940e354da1002184bc19f4493ef Gitweb: https://git.kernel.org/tip/4c456c9ad334a940e354da1002184bc19f4493ef Author: Yiwei Lin AuthorDate: Fri, 20 Oct 2023 13:56:17 +08:00 Committer: Ingo Molnar CommitterDate: Fri, 20 Oct 2023 15:55:04 +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 8c486ff..4b70b0d 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);