Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1347127ybx; Thu, 31 Oct 2019 09:15:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzImeWnLvOfK71mls5paV4jiHWXDDf6PFuRv2cPy9hqU+c0Q3eNYr2cc0gka0LfH4tkpt8g X-Received: by 2002:a05:6402:1acd:: with SMTP id ba13mr6875231edb.141.1572538532856; Thu, 31 Oct 2019 09:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572538532; cv=none; d=google.com; s=arc-20160816; b=ZfZvZ+7oNUvhpCSwQaUPGXvkw0trPZF+2UyvgrLG2awxuq0aAg7RDnDbYKmoh5n7Tw ThIqmTLH0cPeZhOtWycW8PTYZAgP5kovLYa0FJEK5ydKVteuoJXJWDgCyptugTOrB12P XP4h/HpmVTZnVVY5tio9iosETJI8NF4iNsKZp9p+SvIWAXNkubogQNRfXZJH3VWhzJGx /z2Nzsa68s4jmYZSXxqORyw9Y/rVh1NTrxFCSGfbdVTU+DqRCLtP7Ewk+sQt0CJNBFci yb2GkCs9gG3HPMtwL7vxtqG/BMy552SVpKxKVyFIw2a7wZj63DRJWBdtoRAwbSuW0GcS ut2w== 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=0b44hBJoxtCZxIkwJ0bmF/K18FSPAOGzelRpBLgswWI=; b=Pft5U/XJDEbE457a1ffK+VLxP5LSakNPAO49AGNQoCMlHj5Sj3lH7C48bU1asS765z i2KaNPT9/HWTp8hfx1shHM7ACIpTK2i38IcOtqEJA6YJnB1YWvjqC9C3hIly1ttb++VZ xTbv53Jm8DGsz4XF7d5XLIqrRvfcdshXxCNCoI4qADKJbjnLyXW9BNHzokjx63DvfIBl zmg38umN6H+kmgZfNzvjAFSJsATH+mcztJS3TjhF05To3hhh08UBNHaEEDA+dY8Q9rqB tBK6uNcuTVI+MitX98tGn0x0OF9e6pvkbV2IQSX9mz8Mt8A8spkpiDCUFvw3ODGZGOiO tvIg== 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 i8si4120558ejv.130.2019.10.31.09.15.07; Thu, 31 Oct 2019 09:15:32 -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 S1728519AbfJaQMH (ORCPT + 99 others); Thu, 31 Oct 2019 12:12:07 -0400 Received: from foss.arm.com ([217.140.110.172]:51240 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbfJaQMH (ORCPT ); Thu, 31 Oct 2019 12:12:07 -0400 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 8E9171F1; Thu, 31 Oct 2019 09:12:06 -0700 (PDT) Received: from [192.168.1.20] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 97ED43F71E; Thu, 31 Oct 2019 09:12:04 -0700 (PDT) Subject: Re: [Patch v4 3/6] sched/fair: Enable CFS periodic tick to update thermal pressure To: Thara Gopinath , mingo@redhat.com, peterz@infradead.org, ionela.voinescu@arm.com, vincent.guittot@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, qperret@google.com Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, daniel.lezcano@linaro.org References: <1571776465-29763-1-git-send-email-thara.gopinath@linaro.org> <1571776465-29763-4-git-send-email-thara.gopinath@linaro.org> From: Dietmar Eggemann Message-ID: Date: Thu, 31 Oct 2019 17:11:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1571776465-29763-4-git-send-email-thara.gopinath@linaro.org> 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 22.10.19 22:34, Thara Gopinath wrote: > Introduce support in CFS periodic tick to trigger the process of > computing average thermal pressure for a cpu. > > Signed-off-by: Thara Gopinath > --- > kernel/sched/fair.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 682a754..4f9c2cb 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -21,6 +21,7 @@ > * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra > */ > #include "sched.h" > +#include "thermal.h" > > #include > > @@ -7574,6 +7575,8 @@ static void update_blocked_averages(int cpu) > done = false; > > update_blocked_load_status(rq, !done); > + > + trigger_thermal_pressure_average(rq); > rq_unlock_irqrestore(rq, &rf); > } Since you update the thermal pressure signal in CFS's update_blocked_averages() as well, I guess the patch title has to change. > > @@ -9933,6 +9936,8 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued) > > update_misfit_status(curr, rq); > update_overutilized_status(task_rq(curr)); > + > + trigger_thermal_pressure_average(rq); > } > > /* >