From nobody Tue Dec 16 13:49:28 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CDA5C001DF for ; Fri, 20 Oct 2023 14:02:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377484AbjJTOCX (ORCPT ); Fri, 20 Oct 2023 10:02:23 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 4c456c9ad334a940e354da1002184bc19f4493ef Gitweb: https://git.kernel.org/tip/4c456c9ad334a940e354da1002184bc19= f4493ef 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_e= ntity *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; } =20 - se =3D pick_next_entity(cfs_rq, curr); + se =3D pick_next_entity(cfs_rq); cfs_rq =3D group_cfs_rq(se); } while (cfs_rq); =20 @@ -8223,7 +8223,7 @@ again: } } =20 - se =3D pick_next_entity(cfs_rq, curr); + se =3D pick_next_entity(cfs_rq); cfs_rq =3D group_cfs_rq(se); } while (cfs_rq); =20 @@ -8262,7 +8262,7 @@ simple: put_prev_task(rq, prev); =20 do { - se =3D pick_next_entity(cfs_rq, NULL); + se =3D pick_next_entity(cfs_rq); set_next_entity(cfs_rq, se); cfs_rq =3D group_cfs_rq(se); } while (cfs_rq);