Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751764AbdG0HVx (ORCPT ); Thu, 27 Jul 2017 03:21:53 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41992 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbdG0HVw (ORCPT ); Thu, 27 Jul 2017 03:21:52 -0400 Date: Thu, 27 Jul 2017 08:21:46 +0100 From: Juri Lelli To: "Joel Fernandes (Google)" Cc: Viresh Kumar , Joel Fernandes , eas-dev@lists.linaro.org, linux-pm@vger.kernel.org, Peter Zijlstra , Rafael Wysocki , Linux Kernel Mailing List , Ingo Molnar , Srinivas Pandruvada , smuckle.linux@gmail.com, Len Brown Subject: Re: [Eas-dev] [PATCH V4 0/3] sched: cpufreq: Allow remote callbacks Message-ID: <20170727072146.uiuvadgsbpjk5gyb@e106622-lin> References: <20170727054635.GJ352@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 26 Hi, On 26/07/17 23:23, Joel Fernandes (Google) wrote: > Hi Viresh, > > On Wed, Jul 26, 2017 at 10:46 PM, Viresh Kumar wrote: > > On 26-07-17, 22:14, Joel Fernandes (Google) wrote: [...] > > > > But even without that, if you see the routine > > init_entity_runnable_average() in fair.c, the new tasks are > > initialized in a way that they are seen as heavy tasks. And so even > > for the first time they run, freq should normally increase on the > > target CPU (at least with above application).i > > Ok, but the "heavy" in init_entity_runnable_average means for load, > not the util_avg. The util_avg is what's used for frequency scaling > IIUC and is set to 0 in that function no? > True for init_entity_runnable_average(), but for new task post_init_ entity_util_avg() is then also called (from wake_up_new_task()), which modifies the initial util_avg value (depending on current rq {util, load}_avg.