Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4174531imm; Wed, 30 May 2018 00:04:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKiVjwZQIf4bIwwjQquHWa+vASFIBI8hkMbZONRM4lqNDCAH9WfwomWYys8NWMvs+0h/wsZ X-Received: by 2002:a17:902:b7ca:: with SMTP id v10-v6mr1657182plz.224.1527663849763; Wed, 30 May 2018 00:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527663849; cv=none; d=google.com; s=arc-20160816; b=ZuGwdb7LdtvO6NL2GZWoY6v8cWbd8WlcIra7zYtsOmr6uyja/iYolEXH15vuSh24dP 4mp5KiPnGJqGHRA8QNuwnYyAr31g0BkaWO0ssqc0N0+nB5j5AGsK8HcD89K/CkK8lHBM kxcXJPp9uD0zATW2Sx3cAWQdUjcarJXdnU0QCFkWD84LCy6qhBpc6IAQ/8INjWKoPy+K VTOXt/UEu3m6caNKsTL2p2+X1coO3mJR8BFYRxZFPIqmdTjx8aN6UEZ22jLJ9yhBkBf0 VwlqhLaw/TKQxqQ3Wvz1xzfOg5HppKrKQqKdLQrL4wH6I1aEYcrvL0+W0WEbd0MRB1xx s/zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=GNcUMftDKp51LP2MU/Hk2Kjgu+pqBTFseMe4IWNJVis=; b=IHj33O1BOqxVV9LwNLLmvHhJdT+FH1KZbRdboA1laXBGcGKruJKRDybyjD2TGt7/l1 0i/CRiOC0Qk5bfV/SNK0sFl6zq4H0KMHwimBtkUba1dY0B+Qe0GA2HSRTpl5G73TVaWa AZGroZVRPG1yvKpwc2wDnBy+CjN76v7ZitcZJ4J0Er9RtErANzOd5oEhadrjw6WxDP/c B2dbpxqxJrJcX2FrIwtcz07UPKTNj6Icg2JS+w/j62dMlALtukvkmAc+D53r3wUGdlRZ jGtnSstiTbNW8aI7uMKV9t7B6gC8pxqe9QNuYbYzrOHTZq8c+EIg/0cQnKdfTSYQuFNM y3sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MxAvn/zc; 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 z8-v6si34284391plk.539.2018.05.30.00.03.55; Wed, 30 May 2018 00:04:09 -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=@linaro.org header.s=google header.b=MxAvn/zc; 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 S937146AbeE3HDK (ORCPT + 99 others); Wed, 30 May 2018 03:03:10 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:39869 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935905AbeE3HDH (ORCPT ); Wed, 30 May 2018 03:03:07 -0400 Received: by mail-pg0-f65.google.com with SMTP id w12-v6so6495719pgc.6 for ; Wed, 30 May 2018 00:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GNcUMftDKp51LP2MU/Hk2Kjgu+pqBTFseMe4IWNJVis=; b=MxAvn/zcbyDFj7oZDI05Jc+hwPQbbfT+dV931udk5kRtg/xN2khflkDLjR1dHxiEVu 5cWCa05PbbVoPA/rtm3s9uMXi+9p8oXAvQHJ6xRgA+dAfR8f1SPGRGHcJX0O95nSFb8E wV6OIyPiq/NrfXh7Ya/OCQ1Z/+tx6N5km+YuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GNcUMftDKp51LP2MU/Hk2Kjgu+pqBTFseMe4IWNJVis=; b=G1kcY2CtMI6uLv9ZFro0r5S8+QFyMU8NxR6jNVtUflu19x7pInkvsxupDVgRVSGZsW Z4iJjGb6e4BUW4pZWLFo5C2rCGDlykiS9GHcGj2IjOsVfyUlDnK1uF1jF0pgBOPb1qEL s3+k7ZnwXtOplaq/WBf5qkZOgqeVw9wCQAnc5Kcr+SQgtbF2Ft2AS5IuTI5SWO5Za8X8 Z2te0/1Pr0G3XTtrDYvoBtg0x2bpKyW603pubhXiWT7QiSm4xw3QEtQdEBuDZjuvshNa euJ6KvFFIbr4dSfgXk+BBVEr1rQWVthJ5K17kaCh9IBszk1ETugg31eFcdTnGdgpOTb7 3Omg== X-Gm-Message-State: ALKqPwe2OiajdPplz57oWQ5v11mziThyc9v/uJnwEFSnxEyHrwGCzz8S Yi2y2fFG2zfHJBDEDDNZpZqcdg== X-Received: by 2002:a63:ba1c:: with SMTP id k28-v6mr1271849pgf.179.1527663786817; Wed, 30 May 2018 00:03:06 -0700 (PDT) Received: from localhost ([122.172.63.23]) by smtp.gmail.com with ESMTPSA id w8-v6sm66934552pfk.112.2018.05.30.00.03.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 00:03:05 -0700 (PDT) Date: Wed, 30 May 2018 12:33:03 +0530 From: Viresh Kumar To: Vincent Guittot Cc: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, juri.lelli@redhat.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, valentin.schneider@arm.com, quentin.perret@arm.com Subject: Re: [PATCH v5 03/10] cpufreq/schedutil: add rt utilization tracking Message-ID: <20180530070303.qpcgjng7vaell5me@vireshk-i7> References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-4-git-send-email-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527253951-22709-4-git-send-email-vincent.guittot@linaro.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-05-18, 15:12, Vincent Guittot wrote: > diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c > /* > * Utilization required by DEADLINE must always be granted while, for > @@ -197,7 +205,7 @@ static unsigned long sugov_aggregate_util(struct sugov_cpu *sg_cpu) > * util_cfs + util_dl as requested freq. However, cpufreq is not yet > * ready for such an interface. So, we only do the latter for now. > */ > - return min(sg_cpu->max, (sg_cpu->util_dl + sg_cpu->util_cfs)); > + return min(sg_cpu->max, util); Need to update comment above this line to include RT in that ? > } -- viresh