Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4231027imm; Wed, 30 May 2018 01:25:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKKyCyNlImHqV0X/rRAslmDQ6HESYY7EHUtl3lE6cH3lOPlTpxIAqyctIgmJSnBji+DFh4d X-Received: by 2002:a65:6310:: with SMTP id g16-v6mr1456528pgv.135.1527668721729; Wed, 30 May 2018 01:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527668721; cv=none; d=google.com; s=arc-20160816; b=vILS707I+66vQ/4d9aLPAi3+fsHdaxhnisfiR6Kc8HspNo7UUx7zwm6qyDJkVMOCpO 4a6LLqCatqMWOY9y1cI+WxF0Y+yLp3/SW/14bdMSsc9O3vhOCIzY+hfqNVprilWH2Hei MFXFmG7wI56hsoqNNFLtCgAr4dkSrBFgRmrOcKOfJTfuQyKmn28QpUNt3ipPVA1u2O0N BFsnlSOviLo8TKNk7OXDZ+pb1k45+5vHjTVT4QhYiDSPUGpnXo0nFCgoMfBSSLp//4Rd 4PHKsmbb6VHhYZs1tf9Il59NEN/pYs0o8kP2I0anCiMxyrwX9jkefcMkmckJqQlxzuG9 9ePg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2SIGjompCtbA1QKnIFC/0bE2iibmDw7lPFOcc17JA+g=; b=wVsnWy31zgqWOt1G2YonQaPYr9ZLnwbxHdwnqDmI0KZI+rzGvNC/koLHai41ZVGf4Y 9PQ+yGn/QePH7d9nurL7XXILpX6Yj/9ORNBwy3qgeUASAnTCKKbQ+Qqh+LyoqtpMqQmS kRbN3jNhz8o4xZycOEniLyYzDfOyK0YX9ekymqvGRdhj3Alcm4Nt52YlBMMabtF44PXV a258XaRcpj2a8LVkO83+TQ0i3DaV8/vppzAwNgr8dUT5Jz0JKVy3PbFySx6tEZlc3r2I ltelBCxbt+6kKJtIFDHW2dqKSyAf6m+pyznlt3148BYC1J3GeKncpSpVCbpUVsW9FYfh 4Lcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=irQyUvUY; 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 p3-v6si34483107pld.408.2018.05.30.01.25.07; Wed, 30 May 2018 01:25:21 -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=irQyUvUY; 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 S968711AbeE3IXh (ORCPT + 99 others); Wed, 30 May 2018 04:23:37 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:44161 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968692AbeE3IXc (ORCPT ); Wed, 30 May 2018 04:23:32 -0400 Received: by mail-io0-f193.google.com with SMTP id y2-v6so15341547iob.11 for ; Wed, 30 May 2018 01:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2SIGjompCtbA1QKnIFC/0bE2iibmDw7lPFOcc17JA+g=; b=irQyUvUYjBLoSRtShYM5rVfIPtTPqALsTz7pSCWoLYNnQGXpHLsLK30W16zhg6K/xt wkmJQ11v8HQJ3ie2Wi/MvVeQps1j+wIaG8GxIOQarDuCl5GsjoO6/S4Y7sFUg7QTw9Qm 8ZJhSzjzQipU7luaYPDLdPdkoh9M6crnwf9/c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2SIGjompCtbA1QKnIFC/0bE2iibmDw7lPFOcc17JA+g=; b=oUexgMDj93YWUaB6zFqFKHLiPoijP98a6Tm0cXeo4/9Dn2JL1hKUBheFg1OrCjaD4N 4jdND9H/V+FPW5BdxYKlU/CzPWjaBPxr68X/uxn6hmzybQt5jLh4uaAEbLN3x8TnFcF+ xYStntTxhxECzUQd/TBsJaaPOmVnJQRz/F46X97F67CLaaTXcFaZokeHNZHYy/aVBN8U 3uL93/fcYi982dbblha7JWCV06Bk5r7wPZfEH8i0CE5mG1bEWNHkjr281K+yrhNbB7Cq pY4MQdxgz4y5USjj4BFYhi+UZtPHxCZkfGoIztmL42ov/CH0A0yRrcxJpt5Ic22uCG+6 Ahbg== X-Gm-Message-State: ALKqPwfXleGBWiCb7aDZjp+TCxPJJkvLNgnGpAYN0uJcmqA9Yam7vsFM FKumIhRtKRxKg68g+t797T6Z+5viunFHAJw3/WWR1A== X-Received: by 2002:a6b:e315:: with SMTP id u21-v6mr1499581ioc.196.1527668612008; Wed, 30 May 2018 01:23:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:82a9:0:0:0:0:0 with HTTP; Wed, 30 May 2018 01:23:10 -0700 (PDT) In-Reply-To: <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> <20180530070303.qpcgjng7vaell5me@vireshk-i7> From: Vincent Guittot Date: Wed, 30 May 2018 10:23:10 +0200 Message-ID: Subject: Re: [PATCH v5 03/10] cpufreq/schedutil: add rt utilization tracking To: Viresh Kumar Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Juri Lelli , Dietmar Eggemann , Morten Rasmussen , Valentin Schneider , Quentin Perret 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 On 30 May 2018 at 09:03, Viresh Kumar wrote: > 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 ? yes good point > >> } > > -- > viresh