Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4122675ybi; Mon, 3 Jun 2019 06:08:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZp0c40PTKqEjDA4+DZwPkBYoLDRYUBjk5Q0jM+O2eoFfUgPUSwPKJs6KP6/Eidiutzjw7 X-Received: by 2002:a17:902:8490:: with SMTP id c16mr30427289plo.259.1559567305364; Mon, 03 Jun 2019 06:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559567305; cv=none; d=google.com; s=arc-20160816; b=t/A/GDDhZRYkfnomeMyTh8GnIMHZSdSUHXrwGfQmbkRLE4Y34iiTWiv7NbjNx1otA+ V5xZWmmaULXMc7ljuANTnxTRoElX/XpVAbBwHrUSD3jL4SEyX0ogzQUpuEqGQdXWoGPq 7Dmal8/aP4hhA2YTPNqhnpfcfNozyaCplCtNqu0xbinVCeJq+j3gUxSqDauSyrv2ilUy p1nHft1aDEIiN0DjCKEM/ppuiqgze510VVPt0zeCq2KokVmKCk9kle2R1AXlRUX/6cdh PH4vdM5B+uLBcCSyMq7f7gznxeN9+3/O2n3JFK+aFyLHYQBkhMiTAvxXUe6KnvyIdjR/ 9wkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=ziOCPvfE6TBUUfAhHTQ2jx6jP/6NC/Buj7SN0rRArlg=; b=KrDewVJ1PRufJAPOC6+dBBfA/4jmhQ9CS9FyLsARr9K2Lxl1NVVhJzrQyc87gV+yIe 4enOxJJb6Or/iXkDc/v+pC33gsD15xJrWAPir9YlW2c1MR3E4G4YjiD7rEgX28bWqPc7 Iafg0PyTxlsCnmQV05ODEQkmbrKSKQlP9bXq9r2WQWq6beDzcP3sDZN73lxsclSYnGH1 J3s39dnECXbd7UG82IuLwuRRVvzejEiz7dd+1S20FXcUNi44PQFbupo/04T9/MFmvK+n 5KJ8g8hJxCSqTtbFXTl6aAxi0xaCGntJaOjSztBZ8Q/EcmTRji5mixoqjBJm9IOcFSD9 zdZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=V+FTL4Ja; 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=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j100si5902112pje.52.2019.06.03.06.08.07; Mon, 03 Jun 2019 06:08:25 -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=@zytor.com header.s=2019051801 header.b=V+FTL4Ja; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728069AbfFCNF7 (ORCPT + 99 others); Mon, 3 Jun 2019 09:05:59 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38287 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfFCNF6 (ORCPT ); Mon, 3 Jun 2019 09:05:58 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53D5epf604292 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:05:41 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53D5epf604292 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559567141; bh=ziOCPvfE6TBUUfAhHTQ2jx6jP/6NC/Buj7SN0rRArlg=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=V+FTL4JakcYriOKzxkBUVcFWIfBNKgA5/iqq3WcD7SEcdoMLSf6MLl8tfup8yYF2X hDL9z72j5S99iyTOV1KFcvpquzbxrhjI7TmV0RAnBgJ+vqnbRHWodg/VyOW9msJodC Qz9Xpxc4a7o3PjISPqXPYdY3mzbWSyFd0a+0mYxgziCu6W2/qe3glavmZK3raP7uCe wjWBxhLxX8z7dCfKa1V1O+bS+MoUMasZohjQu5ZxJYno6WFpNusgWmOXWmc7+nZupq jPtDSiO7PSaehSWGAAN5F0fbD/l18w4uyDmif54vTWWcx2zxtySsBWszzuEdenQ1NS S/BTd2OZr4BPQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53D5eDE604289; Mon, 3 Jun 2019 06:05:40 -0700 Date: Mon, 3 Jun 2019 06:05:40 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Dietmar Eggemann Message-ID: Cc: quentin.perret@arm.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, patrick.bellasi@arm.com, dietmar.eggemann@arm.com, hpa@zytor.com, mingo@kernel.org, morten.rasmussen@arm.com, peterz@infradead.org, riel@surriel.com, fweisbec@gmail.com, valentin.schneider@arm.com, vincent.guittot@linaro.org Reply-To: vincent.guittot@linaro.org, valentin.schneider@arm.com, fweisbec@gmail.com, riel@surriel.com, peterz@infradead.org, mingo@kernel.org, morten.rasmussen@arm.com, patrick.bellasi@arm.com, torvalds@linux-foundation.org, dietmar.eggemann@arm.com, hpa@zytor.com, tglx@linutronix.de, quentin.perret@arm.com, linux-kernel@vger.kernel.org In-Reply-To: <20190527062116.11512-7-dietmar.eggemann@arm.com> References: <20190527062116.11512-7-dietmar.eggemann@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/fair: Remove sgs->sum_weighted_load Git-Commit-ID: af75d1a9a9f75bf030c2f35705f1ff6d226f96fe X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: af75d1a9a9f75bf030c2f35705f1ff6d226f96fe Gitweb: https://git.kernel.org/tip/af75d1a9a9f75bf030c2f35705f1ff6d226f96fe Author: Dietmar Eggemann AuthorDate: Mon, 27 May 2019 07:21:15 +0100 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 11:49:41 +0200 sched/fair: Remove sgs->sum_weighted_load 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 Signed-off-by: Peter Zijlstra (Intel) Acked-by: Rik van Riel Acked-by: Vincent Guittot Cc: Frederic Weisbecker Cc: Linus Torvalds Cc: Morten Rasmussen Cc: Patrick Bellasi Cc: Peter Zijlstra Cc: Quentin Perret Cc: Thomas Gleixner Cc: Valentin Schneider Link: https://lkml.kernel.org/r/20190527062116.11512-7-dietmar.eggemann@arm.com Signed-off-by: Ingo Molnar --- 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 5b9691e5ea59..7f8d477f90fe 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7577,7 +7577,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 */ @@ -7944,7 +7943,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 */ @@ -7963,7 +7961,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;