Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp811084ybh; Wed, 11 Mar 2020 11:17:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvaopne8rfyy5zAYSVWXGkXHnN05nbGCWLnhrI6LlRrlwB8VeYzHgdOP6gVdRoCUtmSJa1c X-Received: by 2002:a9d:3603:: with SMTP id w3mr3447112otb.94.1583950656150; Wed, 11 Mar 2020 11:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583950656; cv=none; d=google.com; s=arc-20160816; b=VkwV6Nqgfh90y1kndPynNi5tlKuWWtxWHe154qwUrZpt6bUBTh1T46q+zNxf8ibXlf S+uTXDTaspggHCfju5yYHkNeRgmpuSHVfrkW3AxOoLT6qyT4RVPWgpGiRBzp7glXg1/K M0VKvKrvCnxZhEs7dDM8YMDzfOZIFYP4L8a6Poh6Gw+UH7Ecie8dLiDkmYLgfXmZefld mRY6rw0LTe4vs6iGeiuwD97bJUYJaFDXJAaze5WOftfRbQs+re9kWPrE5laDwQVuevTN 0v/EDxA1VDzOtRwgZjBUdraRNt0lW7sR3Fq34+88WIAhp/ByQd1vl8RuR5n5Ozc/z/Kb +Dcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WCImIAFp7ocEw3tofuLI1OOjvXEY8Ei0bku3YJkmnfA=; b=gKEuQCvn4JYpmtybNwl6ksXwbKolV8kDhdLs8BD3PXlshEJLVn4N0CKNtyxS/FNzHn tyCO54u9nuIaHvdxKm1BjnBAepzZJ91YA0UYGhNEpwgxU+aU/DofYhCKja+2zveJ80qM PswVKkdLQ3Ds5RpfJH/oEg2/JcYJJXSlmsSxnOBcxTKYQvCxvwTrab3mU/gSmAZuGip4 ycmO9BuonGIdEooEd657XQe+wr79P7beri2LH9vfjEYQmT8VklNEbv4E9r7A8PtnlQ12 1sGGDt8JKzb81Y+y/MKja0J70vpZ/8bG4ff+I6iuv0YIR2gnQOC6LlharYKLn/Z40psj ny2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si1515378oic.220.2020.03.11.11.17.16; Wed, 11 Mar 2020 11:17:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730788AbgCKSQv (ORCPT + 99 others); Wed, 11 Mar 2020 14:16:51 -0400 Received: from foss.arm.com ([217.140.110.172]:53188 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730626AbgCKSQv (ORCPT ); Wed, 11 Mar 2020 14:16:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F2C287FA; Wed, 11 Mar 2020 11:16:50 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1AEA13F6CF; Wed, 11 Mar 2020 11:16:50 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com Subject: [PATCH v2 1/9] sched/fair: find_idlest_group(): Remove unused sd_flag parameter Date: Wed, 11 Mar 2020 18:15:53 +0000 Message-Id: <20200311181601.18314-2-valentin.schneider@arm.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200311181601.18314-1-valentin.schneider@arm.com> References: <20200311181601.18314-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last use of that parameter was removed by commit 57abff067a08 ("sched/fair: Rework find_idlest_group()") Get rid of the parameter. Signed-off-by: Valentin Schneider --- kernel/sched/fair.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index fcc968669aea..1c3311277fb3 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5782,8 +5782,7 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p, } static struct sched_group * -find_idlest_group(struct sched_domain *sd, struct task_struct *p, - int this_cpu, int sd_flag); +find_idlest_group(struct sched_domain *sd, struct task_struct *p, int this_cpu); /* * find_idlest_group_cpu - find the idlest CPU among the CPUs in the group. @@ -5866,7 +5865,7 @@ static inline int find_idlest_cpu(struct sched_domain *sd, struct task_struct *p continue; } - group = find_idlest_group(sd, p, cpu, sd_flag); + group = find_idlest_group(sd, p, cpu); if (!group) { sd = sd->child; continue; @@ -8624,8 +8623,7 @@ static bool update_pick_idlest(struct sched_group *idlest, * Assumes p is allowed on at least one CPU in sd. */ static struct sched_group * -find_idlest_group(struct sched_domain *sd, struct task_struct *p, - int this_cpu, int sd_flag) +find_idlest_group(struct sched_domain *sd, struct task_struct *p, int this_cpu) { struct sched_group *idlest = NULL, *local = NULL, *group = sd->groups; struct sg_lb_stats local_sgs, tmp_sgs; -- 2.24.0