Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp449013ybg; Wed, 3 Jun 2020 05:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz1zqwFPHC1qyMPWlbhD4kMd+IBciguQj95NwmO0eBoEh2xb02LreSEGIVfVGk/T8+jYAb X-Received: by 2002:a17:906:c7da:: with SMTP id dc26mr6099566ejb.500.1591186160010; Wed, 03 Jun 2020 05:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591186160; cv=none; d=google.com; s=arc-20160816; b=Od/km8BuDUZDmWXZ/QeS/yKrBM5QBO2bLn4uqPvvKIHRknjeqRH6MQaw5UafSecx1M Kai0dprHtACUlL/3CKKYlNPEZeBdWfOb0u9qD/boJR4YQaOSYHn9R9yFWmOHI4zH896d LXxoOyNjMmmvRvuztP4sBVA6waNf65HLrJwfehMGAME6wLjCm8WCVooRFBT4t0ppinQE hNe1xvYaLD0HkSjjxSQyOZOKFQCvCUCkZIePPeWH3PFe+zvniOgZptJoFnyXNfrhzHz5 WsbY+XLb8vfvHn68cqFN2WUtBF4x01iKTme5B1yYQsTKd3Yvxvzfzx5F5NPIcp07WUKE mkwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BIbOf5HdtSdKaIH50HNFnmpw4HPy6383aDhwDCSPydo=; b=0+c8WuIAJnJ5lkTWSge1o9cW7gC4RgzMGXl+u0AQR/P/fwbH3HBeHhh37pyEY9clF5 haexn/6LLXQUMigPtyUeudDYcy8cZpwPr1nmx401IWZWjZ/fPvWeUJB4rqgOGYI3WOCR JnZSG6Q+tNfuDL29fi3i9mt4NY0ZbpsDFe+Z4NhTWOS7WKkngc/Zrjl0+fy3KrdkxC9t fIqB+wnk0eogE5zF3hPaxg1C1vdhoA7fsUOWXD+L2MxZrYCxefn/h57S+WbnH0pCqjJI R4OJPzBWchrdtUjFdxHbD/kvuvtddybVdnn62uDwWEYjLG5yJ6WcwNcWgsppAg9jswSg smKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nHrWWNRb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx2si937602ejb.284.2020.06.03.05.08.55; Wed, 03 Jun 2020 05:09:19 -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; dkim=pass header.i=@linaro.org header.s=google header.b=nHrWWNRb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbgFCMHL (ORCPT + 99 others); Wed, 3 Jun 2020 08:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbgFCMHK (ORCPT ); Wed, 3 Jun 2020 08:07:10 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7756C08C5C0 for ; Wed, 3 Jun 2020 05:07:09 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id b6so2410367ljj.1 for ; Wed, 03 Jun 2020 05:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BIbOf5HdtSdKaIH50HNFnmpw4HPy6383aDhwDCSPydo=; b=nHrWWNRbiHniHbGOkTVHxhtEhQJ+Mq5wngAslBJTukuVvBjSNtiIub3q3D8ttCDxqA yD13A7K+uECthSFNgk+eYvEx4Xbxcj+VXXC4xsDXSbeCK6iw5nfvLoQ7w5rNWrek+I31 S6Q3/Vc3ZGGSHm2e+ZgGXpyL7IGnDawcSSjT7wa8jbxy5mumQktI+rkcVv1oK7oDzO8v qweoyEFPUlPZcGsQ4/dQjFgRAniTDmoaXcwIecvVac6U6LA5T0Cw+QY8ZTAiCtZlieO9 fFaYLnWmgc0FXRTK0Gt8pMt26k6uoZcMjYqkr60oIWRVU1EIHzWqCOVI/cZy7/0v4KPU OFfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BIbOf5HdtSdKaIH50HNFnmpw4HPy6383aDhwDCSPydo=; b=YcvSiEx4hD+cmlw+tFC8q9CXvNc8lAI1KQiAUBu4d12vCTe4CRBd9vtLLNABVrg86Y lZZbOFQ7oSUzqr3IPuDcEWzQwcn2raBvYa8JQAkZGkuyH6D0aO1a9LXWx4pW4nXON6Lm NmQcrFNt/zQuk0rNXNFMKIIRC5K2nWLtlGizuAEO1/me9Cu927NUuH5TAlKFBGQxVjmt iV4ERWExheL8qOdgLwND0KN5xVSAv97GG7zDXNAwP1AiwUilR00BZP+/0mesf+NMsmHn YJaucbCjV3cBkvGi6QYIF0tnm7FERHN9O1Xe0xAY3lmO2khrSrMsU+l9a0jruKQeqY1X ke0g== X-Gm-Message-State: AOAM5328uo80PJwrZNjdF+PbsGfrd89EzjuytojPI/IrDYcl31pa99u9 OSRHjVufuF04SNghYZ6V7Qkw69kk1AfXiG1qnEdr1A== X-Received: by 2002:a2e:96da:: with SMTP id d26mr1938365ljj.25.1591186028318; Wed, 03 Jun 2020 05:07:08 -0700 (PDT) MIME-Version: 1.0 References: <20200603080304.16548-1-dietmar.eggemann@arm.com> <20200603080304.16548-5-dietmar.eggemann@arm.com> In-Reply-To: <20200603080304.16548-5-dietmar.eggemann@arm.com> From: Vincent Guittot Date: Wed, 3 Jun 2020 14:06:56 +0200 Message-ID: Subject: Re: [PATCH 4/4] sched/fair: Remove unused 'sd' parameter from scale_rt_capacity() To: Dietmar Eggemann Cc: Ingo Molnar , Peter Zijlstra , Steven Rostedt , Juri Lelli , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Jun 2020 at 10:03, Dietmar Eggemann wrote: > > Since commit 8ec59c0f5f49 ("sched/topology: Remove unused 'sd' > parameter from arch_scale_cpu_capacity()") it is no longer needed. > > Signed-off-by: Dietmar Eggemann > --- > kernel/sched/fair.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Vincent Guittot > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 5c4a559d0dae..7158d4e3c855 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -8039,7 +8039,7 @@ static inline void init_sd_lb_stats(struct sd_lb_stats *sds) > }; > } > > -static unsigned long scale_rt_capacity(struct sched_domain *sd, int cpu) > +static unsigned long scale_rt_capacity(int cpu) > { > struct rq *rq = cpu_rq(cpu); > unsigned long max = arch_scale_cpu_capacity(cpu); > @@ -8071,7 +8071,7 @@ static unsigned long scale_rt_capacity(struct sched_domain *sd, int cpu) > > static void update_cpu_capacity(struct sched_domain *sd, int cpu) > { > - unsigned long capacity = scale_rt_capacity(sd, cpu); > + unsigned long capacity = scale_rt_capacity(cpu); > struct sched_group *sdg = sd->groups; > > cpu_rq(cpu)->cpu_capacity_orig = arch_scale_cpu_capacity(cpu); > -- > 2.17.1 >