Received: by 10.223.164.202 with SMTP id h10csp131821wrb; Thu, 30 Nov 2017 08:00:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMaygdaXfRsgY/jG92fgPzr05g2CkIG8Eqz1BJx+U7iTxhQFgaAQQJWcpSAyrycM/+XTS7jL X-Received: by 10.159.205.149 with SMTP id v21mr2939976plo.291.1512057619830; Thu, 30 Nov 2017 08:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512057619; cv=none; d=google.com; s=arc-20160816; b=G8htp0veH+2xAwEfLi9Zf/pm9ANLsen/VWQbjc1pDBJnhwUxGN8Zs2wyZT5flLewp4 io5gtn0gZHwIaoNd0xGJgRx+vupg+tNQ8Ne8gOrkmMzsbKCJCwzttdsISd4Rt6SP279r olfe+OOE1mKXzT5UDzOEFjIDrrP4SroBrZZDhEsRufgMZ/kK+WHOhVQX9g1SdjlZfB6c bFfKJWUDQxExEK6m7KIq9J1+LWfWKGGy1PqxwgvHi5NgqIAluF97UVZek4xh4/clmIxQ Qu3YGl3Gk3WYvUsuEv7GQhmS/S29LeTk0ZZ3u/7cH+S015n1mDhzlRVF4EgcnaAghfbe 5eYw== 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:arc-authentication-results; bh=SXAh3CLgbU00CINmxcHipWW9pM4nBOgqT7JicQ297cc=; b=AAFHwf2W3+NGcaWGlSz60b0uERc95R0GaP7RyoevcUKdkBr5NcOgHpAqwbqj4ibvug 5mYLg4M5nNRNlIkUy5igIQ0O/nOArmj+0aLC8n6eVJ01S08ojXtHV1wStbrRiAo8PrJ6 qIlGbfTb3NcGqnQbtVQIzKAoY3Oi8Z92Wt3/lsNhIJMX4ZVi1z61oKEhfJXLSuvowgFg vo511xzLOvzAAfKjTh5063XuRKLoqVCcW5R99iD1NywfLonGSyQsCjqnsAwkWng273Yi piqLW/uiyO0nUZTEtRsvVOFcE4FDnGzqbeXbhiPH/Km40mJzgv+mmIP4t/GarA6QIQ4r AlmQ== 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 p123si3148457pga.747.2017.11.30.08.00.05; Thu, 30 Nov 2017 08:00:19 -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 S1752566AbdK3P5e (ORCPT + 99 others); Thu, 30 Nov 2017 10:57:34 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56728 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbdK3P5d (ORCPT ); Thu, 30 Nov 2017 10:57:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 122C31529; Thu, 30 Nov 2017 07:57:33 -0800 (PST) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.210.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F40E43F318; Thu, 30 Nov 2017 07:57:30 -0800 (PST) Date: Thu, 30 Nov 2017 15:57:28 +0000 From: Patrick Bellasi To: Juri Lelli Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Todd Kjos , Joel Fernandes Subject: Re: [PATCH v3 3/6] cpufreq: schedutil: update CFS util only if used Message-ID: <20171130155728.GF31247@e110439-lin> References: <20171130114723.29210-1-patrick.bellasi@arm.com> <20171130114723.29210-4-patrick.bellasi@arm.com> <20171130132234.GC9903@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171130132234.GC9903@localhost.localdomain> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30-Nov 14:22, Juri Lelli wrote: > Hi, > > On 30/11/17 11:47, Patrick Bellasi wrote: > > Currently the utilization of the FAIR class is collected before locking > > the policy. Although that should not be a big issue for most cases, we > > also don't really know how much latency there can be between the > > utilization reading and its usage. > > > > Let's get the FAIR utilization right before its usage to be better in > > sync with the current status of a CPU. > > > > Signed-off-by: Patrick Bellasi > > Reviewed-by: Dietmar Eggemann > > Cc: Ingo Molnar > > Cc: Peter Zijlstra > > Cc: Rafael J. Wysocki > > Cc: Viresh Kumar > > Cc: linux-kernel@vger.kernel.org > > Cc: linux-pm@vger.kernel.org > > > > --- > > Changes from v2: > > - rebased on v4.15-rc1 > > > > Change-Id: I9291a560bcad7db76894e3f0fcdb917511d0479e > > --- > > kernel/sched/cpufreq_schedutil.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c > > index 448f49de5335..40521d59630b 100644 > > --- a/kernel/sched/cpufreq_schedutil.c > > +++ b/kernel/sched/cpufreq_schedutil.c > > @@ -351,10 +351,9 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time, > > unsigned int next_f; > > bool rt_mode; > > > > - sugov_get_util(&util, &max, sg_cpu->cpu); > > - > > raw_spin_lock(&sg_policy->update_lock); > > > > + sugov_get_util(&util, &max, sg_cpu->cpu); > > sg_cpu->util = util; > > sg_cpu->max = max; > > Patch looks good. > > Reviewed-by: Juri Lelli > > However, not sure $SUBJECT is really in sync with what the patch does? > CFS gets "used" before and after the patch... last paragraph of the > changelog looks more like it. :) Yes, that's a pretty trivial update with a confusing changelog. If we think it's worth to keep (and correct as well) I'll update the commit message. Thanks for poinint that out. > Best, > > Juri Cheers Patrick -- #include Patrick Bellasi From 1585497513576743380@xxx Thu Nov 30 13:24:17 +0000 2017 X-GM-THRID: 1585491549452218904 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread