Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8395918imu; Tue, 4 Dec 2018 07:46:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/UbDzuG0IQdy2wdzRHA4S+q/OV9gHZXAPevA+wj4VmkRM/cfx5kWg8ogVYjtrVWCDocmP1q X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr19151395plb.70.1543938393606; Tue, 04 Dec 2018 07:46:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543938393; cv=none; d=google.com; s=arc-20160816; b=pBLHHevrtmUMheDeeurD77vyliH/qAORYeLs6S4+Kq7rNerOZ6d1xt0DI4XICkI1ZN yFI5SKuFJZiR1VcO+/OawEPPYCeglhSBxVOHK4ThS+kLgB6hkyNeG0Uor2yQGA+Q3oGV aBwNYm+jEderk4uPFcmERsl6xKU6GYgHOwlvAFv4/L9YpRVbyWJ0pIM1msMa/EDgMM66 UviHRGS5Uh6cRSggRx4ICc4yy1wgtCLDSc3Cqb2YQW+0RwruG//wm8pKOujY9XyZ5mGf 0PXU1n5GrjxWTxFhG1ywLEhnGGTvAypQxSW8O3o+K2gQosyO1dyeybpPTTw3dG/nJYf/ LAlw== 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=ysPLc9vTvOK2EWdgx5z5B8rpOAQ2rRDlsvgkzpycaw8=; b=U9H60F9uEuwbbYF2iKKnvs4J6iQGn3Lurw1sCx5OBRsB/4mxT+46sImDRL7OXmEXx5 C429KEk108hXw4yadUHZDIrxYhRSAUwbNOanWwJvv0leko/SvrvyhoxwQALngjf5HJir 88QwyIFL5R4HF8MjqcQh5j0ZRyNkIg9l5sGD+SFsNwFxqdGClMF8CODWeVPAEESJvsVm 5jZeqpJrjMXaHEaUPDR/1GBYcVtRKP5i8QLOUHN4Oz+ymZ5H7IXJ6NWi1KaggRxj9gPZ HS4PSAywGzA895BiH4n76RvQ9C+IstHUBR324Uqp1tdX0iDN+bpD+/I2DGItmnsV3iHL ueMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="N4UGcs+/"; 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 31si17880656pli.438.2018.12.04.07.46.18; Tue, 04 Dec 2018 07:46:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b="N4UGcs+/"; 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 S1726925AbeLDPoM (ORCPT + 99 others); Tue, 4 Dec 2018 10:44:12 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:43016 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbeLDPoM (ORCPT ); Tue, 4 Dec 2018 10:44:12 -0500 Received: by mail-io1-f67.google.com with SMTP id f10so8163110iop.10 for ; Tue, 04 Dec 2018 07:44:11 -0800 (PST) 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=ysPLc9vTvOK2EWdgx5z5B8rpOAQ2rRDlsvgkzpycaw8=; b=N4UGcs+/DSnkP3WagcOlyvwyp+3jfVDf4juqsyWCUJK57+bsHYx1QOrtLC5uXpNFY5 FyzqbNVmLFspP1Bx1J6RDKpHj2m93YOrol20izkVajoLt9CL9fTMuDuDNuaubwJvDs+T H/yC2yVpi/TN24A/mYFwSyNx1vyJDzqg1Cf/s= 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=ysPLc9vTvOK2EWdgx5z5B8rpOAQ2rRDlsvgkzpycaw8=; b=s89Er/QDaPqC3l8Wa4lRszouXj6o0AnR2wBIEiqa2gG3VVIj5n0QjQeCC+aG9N8b3U mHL7AzG5XdMGh6BXSS7UzoBT/56Mf0Ny02FKYAei+WVK7B0sVe+iG9jY1B5AY9NisZ3q Eg9QkW/99tnI6nA63aZH0E+dDtE1qKqulh9FnRYcMpDbSGHXwWghdzM4NciYfV52cGc9 EWGFGNhsUAZnM2cmnIS2Z9Zc7CPP1ThpNnyqwH0WYVBY4RlhrYFK0oyVoLmunOgo5xCM 6/CUMWfrQdTG161Xl3gSsRXyd3Rb8x9l+I30Uhi7BKV0eEOvOzM9owI82c+/AJ+q8szO O+nA== X-Gm-Message-State: AA+aEWYoPpEQhn6dtz9JBe2GICbfJyFMk/YkNEUNrEprX8CIFi1LzaT9 Uszll5F3/AxEDvyKQAYZoMqFFOQUjKJBlDjn1Sfsjw== X-Received: by 2002:a6b:6b0d:: with SMTP id g13mr17121690ioc.18.1543938250444; Tue, 04 Dec 2018 07:44:10 -0800 (PST) MIME-Version: 1.0 References: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> <1539102302-9057-6-git-send-email-thara.gopinath@linaro.org> In-Reply-To: <1539102302-9057-6-git-send-email-thara.gopinath@linaro.org> From: Vincent Guittot Date: Tue, 4 Dec 2018 16:43:58 +0100 Message-ID: Subject: Re: [RFC PATCH 5/7] sched/fair: Enable CFS periodic tick to update thermal pressure To: Thara Gopinath Cc: linux-kernel , Ingo Molnar , Peter Zijlstra , Zhang Rui , "gregkh@linuxfoundation.org" , "Rafael J. Wysocki" , Amit Kachhap , viresh kumar , Javi Merino , Eduardo Valentin , Daniel Lezcano , "open list:THERMAL" , Quentin Perret , Ionela Voinescu 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 Hi Thara, On Tue, 9 Oct 2018 at 18:25, 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 | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index b39fb59..7deb1d0 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 > > @@ -9557,6 +9558,8 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued) > > if (static_branch_unlikely(&sched_numa_balancing)) > task_tick_numa(rq, curr); > + > + update_periodic_maxcap(rq); You have to call update_periodic_maxcap() in update_blocked_averages() too Otherwise, the thermal pressure will not always be updated correctly for tickless system > } > > /* > -- > 2.1.4 >