Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3857184ybi; Mon, 27 May 2019 07:11:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcBg7bWMIT40wA5gvzikg1nusufRv2LWrTzzW0KuyIeKrj/rhlhPAWFKc+mTqX11scPx5Y X-Received: by 2002:a17:90a:344c:: with SMTP id o70mr31138510pjb.21.1558966274979; Mon, 27 May 2019 07:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558966274; cv=none; d=google.com; s=arc-20160816; b=cSJnEtM4Y/V90N0gLzL3QQxYm5snIML82jNZPErnWDOJqdthnP/T/rU2yR3nvAWWrt VdI92yj0k2h0TDLY+wEBnjllfFt19UeJgxBMQj2Mjt2vCmu1BsfPeTFMTxfYAyNtm7CH 7pZqj8UtMLCPzxW7o8yUiEXVdzd7FlpU8AUU+bynoof8cHiVeAbn18Sf3RUgJj2RRC1b T1ad6MVQaVe0kq0Tu8jphMzMgINLRMMsGl0dZ0w41eolHs7ju+gWi2Ktca0O5KBOlB1e NocPKU43HBEYmAMJL4XouR23e0goDFK5AsWO01udtJx3if8B8UbShfXBBnFL6Gn373n9 fl0w== 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=ug4d1f+ohs3NURMTPtwC1Hci+/10RkUCukOMEMhD1do=; b=rpNtB43KSOqdUUru1eyxYECZq+SOctwlI2xqZjfWWJT9ndWWNCxURhq9GxCclo+cVx u+HMaJA0WyM26xKhWTkiBmUeJYyShf1gUwBkxpQC0kyFhaDwLxNEtU5Bz1YEHUVacK+Y sMysIl+SQDgjXflnp+P0KHP6rbgtSWIEXZT7PQKcK/GuU3zon9j9zos8URK15stJAZ7F tXbcLn7L7xEW59hCNBL/Wy7gWlwS5OEjIP3oKWQG2EK+/s+H4733dsjCXJfa5+W0euI0 8mmvJn26MYUvSp6p1EnxEqUunV1HaUJovM0RY+oS+FjpjPHOpovLRCo3Dd3piPcmWsgi vq0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o9zYwl72; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si17934021plb.39.2019.05.27.07.10.59; Mon, 27 May 2019 07:11:14 -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; dkim=pass header.i=@linaro.org header.s=google header.b=o9zYwl72; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbfE0OHQ (ORCPT + 99 others); Mon, 27 May 2019 10:07:16 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43911 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfE0OHQ (ORCPT ); Mon, 27 May 2019 10:07:16 -0400 Received: by mail-lj1-f196.google.com with SMTP id z5so14802100lji.10 for ; Mon, 27 May 2019 07:07:14 -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=ug4d1f+ohs3NURMTPtwC1Hci+/10RkUCukOMEMhD1do=; b=o9zYwl72p6ifvKLI1GZJyvUTjg/c7/9zonDJbiIKpCKFGl6yZuCqdtjR1ajNJRRH5I L2o9ijAfGrQMJuIdSxPg8f8pfuPBneMISCaj1DP99KOUjZBvYyNeAxY5tyIVMmR/4XzS z5vAi31rHRUh6KV2jK6docUAzJyZhjM6Ei3C7mqNI8JP/0avPhOm8Pm+aCl8usIcudbd SNLRQjY827x0Ecrl3WNW6AEZvh8wwkcV8jN/Aehi+MtXm2kWe4OzX5pmvnitcYVMGE/B Z6pHuzzLbcBssWd1xFWl9s//Akepa7U5BT5Y3agL/a6yjTcAdslC8Jk8bKuMXsp7D3NH PyQQ== 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=ug4d1f+ohs3NURMTPtwC1Hci+/10RkUCukOMEMhD1do=; b=iBlJcyU/5rS3h87tEfQi4Ti9oH80uvmC+CtC63yxctAxYlYpmekTiJJniui5uDIL3m LqtQFeFDs+gObDXEq6NsW5DTiBEoT53DCRIgROoX4pDYI35gBvhrA1Qhf5RffRM/IwIz 5ELrO/oTqI1m8Xo1wRH/ZnJFy8PcA5JHEtmPRNMlJN6Cm5Vw+xIGVnlq5xeRt48h8iyF Nnm6pQlwgxkVQyt5d9VcLZd7MQwRcpI8YNDpLIJQlyeJV8yHZHqDrXb6ao9xLakaUHUq Twzhxs2TeAkxI4fQdvlphm4lhy6QApP1qU9PzhARFoR0EUcr18FBp2i5f4d2ZF74UuRw Dxzg== X-Gm-Message-State: APjAAAVBruBkReIhk3tAsZ6WsSX6/OESdBEuluPjmzmkhxDD8KJe9vn0 +JEfH8Xq0RHS1Q3oR3N5kANK+4MJsknRmgeEdukVcQ== X-Received: by 2002:a2e:8185:: with SMTP id e5mr29285075ljg.14.1558966034047; Mon, 27 May 2019 07:07:14 -0700 (PDT) MIME-Version: 1.0 References: <20190527062116.11512-1-dietmar.eggemann@arm.com> <20190527062116.11512-7-dietmar.eggemann@arm.com> In-Reply-To: <20190527062116.11512-7-dietmar.eggemann@arm.com> From: Vincent Guittot Date: Mon, 27 May 2019 16:07:02 +0200 Message-ID: Subject: Re: [PATCH 6/7] sched/fair: Remove sgs->sum_weighted_load To: Dietmar Eggemann Cc: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Frederic Weisbecker , Rik van Riel , Morten Rasmussen , Quentin Perret , Valentin Schneider , Patrick Bellasi , 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 Mon, 27 May 2019 at 08:21, Dietmar Eggemann wrote: > > Since sg_lb_stats::sum_weighted_load is now identical with > sg_lb_stats::group_load remove it and replace its use case > (calculating load per task) with the latter. > > Signed-off-by: Dietmar Eggemann FWIW Acked-by: Vincent Guittot > --- > kernel/sched/fair.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 88779c45e8e6..a33f196703a7 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -7580,7 +7580,6 @@ static unsigned long task_h_load(struct task_struct *p) > struct sg_lb_stats { > unsigned long avg_load; /*Avg load across the CPUs of the group */ > unsigned long group_load; /* Total load over the CPUs of the group */ > - unsigned long sum_weighted_load; /* Weighted load of group's tasks */ > unsigned long load_per_task; > unsigned long group_capacity; > unsigned long group_util; /* Total utilization of the group */ > @@ -7947,7 +7946,6 @@ static inline void update_sg_lb_stats(struct lb_env *env, > sgs->nr_numa_running += rq->nr_numa_running; > sgs->nr_preferred_running += rq->nr_preferred_running; > #endif > - sgs->sum_weighted_load += weighted_cpuload(rq); > /* > * No need to call idle_cpu() if nr_running is not 0 > */ > @@ -7966,7 +7964,7 @@ static inline void update_sg_lb_stats(struct lb_env *env, > sgs->avg_load = (sgs->group_load*SCHED_CAPACITY_SCALE) / sgs->group_capacity; > > if (sgs->sum_nr_running) > - sgs->load_per_task = sgs->sum_weighted_load / sgs->sum_nr_running; > + sgs->load_per_task = sgs->group_load / sgs->sum_nr_running; > > sgs->group_weight = group->group_weight; > > -- > 2.17.1 >