Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3544805pxp; Tue, 8 Mar 2022 17:05:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtwzcwXG2KCZAKBja2zqncFtWJpg4GNw+w7+tUNMaDLrTkxt+KT+cE31mmyTQs2lhkdfyh X-Received: by 2002:a05:6870:51cf:b0:d7:19ea:55b with SMTP id b15-20020a05687051cf00b000d719ea055bmr4136806oaj.114.1646787941408; Tue, 08 Mar 2022 17:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646787941; cv=none; d=google.com; s=arc-20160816; b=FVXEMWWD+SdfP9wf14f/iHenroEH/1bhocHYETNBS27PT7nUYY5Cks4lgVd4kN0JYU L+mZ2Q4CcJVr5rNqP+LaZp7fCNc3/b9S0j7ETBxLc9QJ5EYIOzdBBYQxZnLLzj68ne31 1hHboqunYTO7pasDNmWvG+HKvRBQ5vNHBs6EBkgkNkp/KnOBTeylftFUtQwiyf3zXo1+ FwoKT+0zjhRujr5m4VjFct+fW+y7B3Mq9j6fPdtv0csXm2zw/+s0rT8DXMEUDlQ4iNSj nQFFZZBKShAim6UJcnqL6jYfvkcm3eljkb9OJCrMAKYRhfqIDNybWQTBbTGqg2mknIvJ hOKw== 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=8o6qWaHT4VJ2d6dz73yaZrtgbAfVD5Or2FQmpSvrUgw=; b=UbUMv8c2J/YYwOW72OTh3dlcrRW9eHdnmGj3fUdZsWD07/yzTue5C6C8N8yd6kGLnV nnqZUVeysoUHBML89JWzucHh6CsPgLwLAWj7SLw6QqE7gE6JIFijRlc0WYZU++5Xs2vt G8C48gTfibvGvH/5yyxGy1WKeHehOxvBlGGfKI9ghICOfh53kOL0vjFVMt3S2HWD6Ak0 EpueouzMALo4VsfsqsM0/8euLYtfPr5Q3Chh/fHdg+q8WL406w5Q0vv8MRoovN5lvlYC X5MZzOQ36QKLmB2Hgk1IccICDY4hTp3+ONm5G3dkWzzgMPbLRYbt17kCazkA5Utu7psu xUdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=g1PrrID6; dkim=neutral (no key) header.i=@linutronix.de header.b=mD0kvC6k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b17-20020a9d6b91000000b005b24a000fc8si420380otq.59.2022.03.08.17.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=g1PrrID6; dkim=neutral (no key) header.i=@linutronix.de header.b=mD0kvC6k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 00A3717225E; Tue, 8 Mar 2022 16:11:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343609AbiCHW0Y (ORCPT + 99 others); Tue, 8 Mar 2022 17:26:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350531AbiCHW0T (ORCPT ); Tue, 8 Mar 2022 17:26:19 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 723EE583B8; Tue, 8 Mar 2022 14:25:22 -0800 (PST) Date: Tue, 08 Mar 2022 22:25:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1646778320; 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=8o6qWaHT4VJ2d6dz73yaZrtgbAfVD5Or2FQmpSvrUgw=; b=g1PrrID62ZydX9J5VRxBH4n90rxVVp1Buku2t0qysn4WmbIctvn3Md4gOW0rB49b0QcSNW 2AoQ5JsTQgBAnRJ7gdKTkb7rzfqx52tOEtrujBcN49cl/WqWMdNSaQP2Gp/V10ndIPoW/g 5qH12cxdw3WEUt8w0Xr++eS+b03gIyYaT68IBSp3EKgbjWmjasMRyPRKTajV3/f9wKcw5Y kFPdmvnhKNQxPSvdzhvEM4ANw8xMtp4mgZtX09+4F6RUWS7uop6AzZBtiWM2Ww4YxDSfgE hh1AFDfIQKpZR3czEtgQaXkQsbPJbBRdgvZOGluOyRhip9B1pgItNLdNvaaTHQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1646778320; 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=8o6qWaHT4VJ2d6dz73yaZrtgbAfVD5Or2FQmpSvrUgw=; b=mD0kvC6kifDvdDhdmu04GzvYn1r4mVfqsIYHqX4P0uZ0MzmDBynXEsMQrelbwuRZrZAkjy erU2IA6FVa8m3/CA== From: "tip-bot2 for Dietmar Eggemann" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/deadline,rt: Remove unused parameter from pick_next_[rt|dl]_entity() Cc: Dietmar Eggemann , "Peter Zijlstra (Intel)" , Juri Lelli , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220302183433.333029-7-dietmar.eggemann@arm.com> References: <20220302183433.333029-7-dietmar.eggemann@arm.com> MIME-Version: 1.0 Message-ID: <164677831974.16921.1428536187816309062.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: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The following commit has been merged into the sched/core branch of tip: Commit-ID: 821aecd09e5ad2f8d4c3d8195333d272b392f7d3 Gitweb: https://git.kernel.org/tip/821aecd09e5ad2f8d4c3d8195333d272b392f7d3 Author: Dietmar Eggemann AuthorDate: Wed, 02 Mar 2022 19:34:33 +01:00 Committer: Peter Zijlstra CommitterDate: Tue, 08 Mar 2022 16:08:40 +01:00 sched/deadline,rt: Remove unused parameter from pick_next_[rt|dl]_entity() The `struct rq *rq` parameter isn't used. Remove it. Signed-off-by: Dietmar Eggemann Signed-off-by: Peter Zijlstra (Intel) Acked-by: Juri Lelli Link: https://lore.kernel.org/r/20220302183433.333029-7-dietmar.eggemann@arm.com --- kernel/sched/deadline.c | 5 ++--- kernel/sched/rt.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 93fcef5..11cdc6d 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -1961,8 +1961,7 @@ static void set_next_task_dl(struct rq *rq, struct task_struct *p, bool first) deadline_queue_push_tasks(rq); } -static struct sched_dl_entity *pick_next_dl_entity(struct rq *rq, - struct dl_rq *dl_rq) +static struct sched_dl_entity *pick_next_dl_entity(struct dl_rq *dl_rq) { struct rb_node *left = rb_first_cached(&dl_rq->root); @@ -1981,7 +1980,7 @@ static struct task_struct *pick_task_dl(struct rq *rq) if (!sched_dl_runnable(rq)) return NULL; - dl_se = pick_next_dl_entity(rq, dl_rq); + dl_se = pick_next_dl_entity(dl_rq); BUG_ON(!dl_se); p = dl_task_of(dl_se); diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index b62e765..67039e5 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -1719,8 +1719,7 @@ static inline void set_next_task_rt(struct rq *rq, struct task_struct *p, bool f rt_queue_push_tasks(rq); } -static struct sched_rt_entity *pick_next_rt_entity(struct rq *rq, - struct rt_rq *rt_rq) +static struct sched_rt_entity *pick_next_rt_entity(struct rt_rq *rt_rq) { struct rt_prio_array *array = &rt_rq->active; struct sched_rt_entity *next = NULL; @@ -1742,7 +1741,7 @@ static struct task_struct *_pick_next_task_rt(struct rq *rq) struct rt_rq *rt_rq = &rq->rt; do { - rt_se = pick_next_rt_entity(rq, rt_rq); + rt_se = pick_next_rt_entity(rt_rq); BUG_ON(!rt_se); rt_rq = group_rt_rq(rt_se); } while (rt_rq);