Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp750753ybz; Wed, 15 Apr 2020 18:09:00 -0700 (PDT) X-Google-Smtp-Source: APiQypL6y291PHA5G8NWLg2rhizdJt19UVeyf3sqIEDxC8Mf78g6lu7SNyQjJXRDY+MVEdXfpl+F X-Received: by 2002:a17:906:548:: with SMTP id k8mr7304809eja.259.1586999339898; Wed, 15 Apr 2020 18:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586999339; cv=none; d=google.com; s=arc-20160816; b=JwZfJfakQ6n2O+E1f24EvofYJF7nnF9tc8v399VbmtPd9uB3HNVIPKWklQPu98rIG8 BqC7jZQ3zBwolUg/4qDqDFbccwj8p/ZDPRhvTyxA2mx3pGVXeibW4KKMdV0x2ipIrjEm wkyrAT8ekmhoFTRCu1oU/NAZ+BzzSxoYMeQvXF+9hAjc4g5yVEqOTKxT9mvE4kA/GSxW Xiuls/CiFbHdJOeGma8ahuzPpONMZdqONSnd3WHFFaIOzp8fr7+mtxpEUJRNoOa9YB6H uwvYeevcatCfSg4SVe4kuJA5edd14+rLkiJVLWDFYT2mh7M1lvMgNaP+hfdi1JSMUb3x 1UDA== 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=wUoGpYTe1Uhw46NTQnjcG9S0/N/mWHATfKPCHrqSY/Y=; b=WkfnOs14sE9xa0vdvithODMeymhNujrxWGtC9luYaaEPM26X1j1/b35dPa2MocSgqW y1xz3xVvwmnDo2RsA0u5E0S2fD9YdThKNE1ibjOt4TAZNcuE/bjHtjd4yc+ZUWBwCTPu cjbyZUMNevhvLjC2kYmDrMyZsIYYS2XZmu2n9KnhRJNrfYV48tpFDA5zxBcEKn5SXuN8 24AX2YOwk8BVHyDQnE56vEujHGbF3hLqhDdmUv6WHDmURRXh3LOWcfJEj76iKCrNACdO R0xF9OD4/oWJ9aPOP8pYv+CVd5GfRQ5IsQfoNlbE0N3tj71CsnVg5wwfJEul8x1J0j52 6tZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l61si11626694ede.343.2020.04.15.18.08.31; Wed, 15 Apr 2020 18:08:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S371350AbgDOVKm (ORCPT + 99 others); Wed, 15 Apr 2020 17:10:42 -0400 Received: from foss.arm.com ([217.140.110.172]:52504 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2442221AbgDOVFb (ORCPT ); Wed, 15 Apr 2020 17:05:31 -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 B5F051063; Wed, 15 Apr 2020 14:05:25 -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 CFD813F6C4; Wed, 15 Apr 2020 14:05:24 -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 v3 1/9] sched/fair: find_idlest_group(): Remove unused sd_flag parameter Date: Wed, 15 Apr 2020 22:05:04 +0100 Message-Id: <20200415210512.805-2-valentin.schneider@arm.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200415210512.805-1-valentin.schneider@arm.com> References: <20200415210512.805-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. Reviewed-by: Dietmar Eggemann 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 02f323b85b6d..98321d8dde7e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5821,8 +5821,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. @@ -5905,7 +5904,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; @@ -8677,8 +8676,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