Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1995323ybl; Thu, 9 Jan 2020 05:14:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyVVW+Vtzd2oY1c2o2Y26yGpJDttWSa4zhwyTpiFo1H/qa7VKRnUAI0GyTO4bUF72QDK5Tp X-Received: by 2002:a9d:70cb:: with SMTP id w11mr8783218otj.230.1578575677897; Thu, 09 Jan 2020 05:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578575677; cv=none; d=google.com; s=arc-20160816; b=o+fpaghu3+pR6LMgpSN0+cNLz0pGH3LswJ1IhaM9S4rG2tUfq0e81e+iwcKQ2JDEzt shzBbpphqE84ptBu4i5XdT6rpor37W+ygPkuOUaOcUGCyPQB27QJcVb9mmsTWR9wYB22 MmXppJO9q0Tv6L96aU9zPOzIfuqCRpvAOAwJ9k962Qm4ySrmFnwsF1oKivVcapTp/33Z xZn1/snAfN7jTOeJqyXSPQGHwj4QWn9WnnNNAOueVKSBW46I8IKMUyPgajBEQDmeRwEf 79WE06Phj8rqn1FA8jqy+6Li+zlOXs05wM0qX/fSnjkBDW83/FxlkzPmLx7BzJ5MP7le Dwqw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YqV9CKMF50KeWS3jUVRIyW3fnpD7MCXY4m1QY/LJo98=; b=VzJ+RPYRrf69jxulpDIHGJ82mP5Y6kgS+uN7ZFw/heM4T67hMl91vPtFmGRUdLsuj6 woH+BMnSGTjPowM+mQThhgPwNyvjHW8a+z4hqgMS3nyP2Xg3mmup3hKncISVXpYfbPVb edI/jFMB+pDCArC0x6KXJhjcQ+e6t8hAj29qsxJhoKdxpggGYoIKLD3L7MZT/vXpFXZo 9VY7igixTUzsL+FwFxyvaF+PEXm3lzETiOTSq8FhBOVaGqX672ZE/1xUoDagrkupN/WO BgMCbBi/dvbx65FkmzAje5iocZlfV8ny7ZiV+nRUGYA+virFl2swNnYrtcHqwL2OoWls JhHw== 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 u12si3459434oiv.13.2020.01.09.05.14.26; Thu, 09 Jan 2020 05:14:37 -0800 (PST) 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 S1730917AbgAIMY1 (ORCPT + 99 others); Thu, 9 Jan 2020 07:24:27 -0500 Received: from foss.arm.com ([217.140.110.172]:58390 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729159AbgAIMY1 (ORCPT ); Thu, 9 Jan 2020 07:24:27 -0500 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 B2B0C328; Thu, 9 Jan 2020 04:24:26 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C1D5A3F534; Thu, 9 Jan 2020 04:24:24 -0800 (PST) Subject: Re: [Patch v6 1/7] sched/pelt.c: Add support to track thermal pressure To: Thara Gopinath Cc: Ingo Molnar , Peter Zijlstra , Ionela Voinescu , Vincent Guittot , Zhang Rui , Quentin Perret , Daniel Lezcano , Viresh Kumar , linux-kernel , Amit Kachhap , Javi Merino , Amit Kucheria References: <1576123908-12105-1-git-send-email-thara.gopinath@linaro.org> <1576123908-12105-2-git-send-email-thara.gopinath@linaro.org> From: Dietmar Eggemann Message-ID: <8a85f4c2-6ef8-314a-c56d-86c773d5ead0@arm.com> Date: Thu, 9 Jan 2020 13:24:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/01/2020 15:56, Thara Gopinath wrote: > On Tue, 17 Dec 2019 at 07:54, Dietmar Eggemann > wrote: > >> On 12/12/2019 05:11, Thara Gopinath wrote: >> >> minor: in subject: s/sched/pelt.c/sched/pelt >> >> [...] >> >>> diff --git a/kernel/sched/pelt.c b/kernel/sched/pelt.c >>> index a96db50..9aac3b7 100644 >>> --- a/kernel/sched/pelt.c >>> +++ b/kernel/sched/pelt.c >>> @@ -353,6 +353,28 @@ int update_dl_rq_load_avg(u64 now, struct rq *rq, >> int running) >>> return 0; >>> } >>> >>> +/* >>> + * thermal: >>> + * >>> + * load_sum = \Sum se->avg.load_sum >> >> Why not '\Sum rq->avg.load_sum' ? >> > Hi Dietmar, > > The header for all other update_*_load_avg api use se->avg. and not rq->avg. True but at least they (rt_rq, dl_rq, irq) also say 'but se->avg.util_sum is not tracked'. I guess this comment originally came from the '__update_load_avg_blocked_se(), __update_load_avg_se(), __update_load_avg_cfs_rq()' block: * cfq_rq: * * load_sum = \Sum se_weight(se) * se->avg.load_sum but for rt_rq, dl_rq, irq and thermal we don't have a relationship like between se and cfs_rq's so that's why this comment confuses me.