Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3433382ybi; Sun, 26 May 2019 23:23:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy98wpllggvrh/oUBgt7acE54PiXPpR/L7gZOkn2Cacr7LxFRK9fn1e1iucEDrwr5PwjaJg X-Received: by 2002:a17:902:4827:: with SMTP id s36mr290074pld.197.1558938192710; Sun, 26 May 2019 23:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558938192; cv=none; d=google.com; s=arc-20160816; b=KxKq0vwbyDMIzwm3smh8KgAFC2AUHOV9798eVe4br+A9uVKFmnXbkM3QwS6Q34uBWs tR2I2MExaMluM9r8oK9xoziGhMEphDW00DXp402DXVMEWlAb9HXtlu7P5HA03uNpsXtt WSyrEUazdKJXlVLHz0Loa3kQArbEmK6OsRmlsSbU9BNhEyESKyxGZfyhk/zSG+OR7zcU adx/j73DwmVs19zIF3t5F13Fx9gD6tixwRKX7MJkD0v1T5YV2w12Q4AwKwl1Xv78SU2E ERgtFTWoOaYaG4gUTk+OOnELowGyd7E4PvDHAZD8ePVsk64cishP4C0DSEvNxRbW23IP 7/Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=cnYKhDkQc1fHE3TVuAXRP2H1VSA1k4fbAEQqAMwqM/U=; b=zf9EYtzD4hlRtU2WykKqKeh3wzCfPO/eiGO6SbgV3tYmuBd910aXY+RAjz0hAnd40O A8/hrI+aY8R8y8U3nwv1z1pgeEOJZznUWjdg7wvyOLGzj1T1LhrtHnDMXagmAbXqZkai IUYbWPW6FD+VqUEpt2tfqo2jxBdrIjZ5XoX5mkbyb7YOenBw8ZckNo4cMQ2qdTrcNPj9 lUiNKJMs/+tN6FGkDKCebbsqh0+zaYOlk43XNWsIblJggdUDVQdwzXO2kX/OCduuKHw0 zvfxA1rq/mUKybbgubnIZsAJhbl8u7x1OV+dShOiCYIFLxeZ5gkOVArXT35SOqUBLudH 4vPQ== 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 l9si16479304pgq.534.2019.05.26.23.22.57; Sun, 26 May 2019 23:23:12 -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 S1726381AbfE0GVr (ORCPT + 99 others); Mon, 27 May 2019 02:21:47 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56190 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbfE0GVq (ORCPT ); Mon, 27 May 2019 02:21:46 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A4BC71684; Sun, 26 May 2019 23:21:45 -0700 (PDT) Received: from e107985-lin.cambridge.arm.com (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B45313F59C; Sun, 26 May 2019 23:21:43 -0700 (PDT) From: Dietmar Eggemann To: Peter Zijlstra , Ingo Molnar Cc: Thomas Gleixner , Frederic Weisbecker , Rik van Riel , Vincent Guittot , Morten Rasmussen , Quentin Perret , Valentin Schneider , Patrick Bellasi , linux-kernel@vger.kernel.org Subject: [PATCH 6/7] sched/fair: Remove sgs->sum_weighted_load Date: Mon, 27 May 2019 07:21:15 +0100 Message-Id: <20190527062116.11512-7-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190527062116.11512-1-dietmar.eggemann@arm.com> References: <20190527062116.11512-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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