Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp368766imm; Thu, 10 May 2018 22:43:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrBUODV7xzX1kgjwOaPzjZyy35x48yZyHH5mzd+gOKtGf1JuS2+rYgwmfxpqKI/wPiLPX3y X-Received: by 2002:a17:902:7c18:: with SMTP id x24-v6mr4250382pll.173.1526017432897; Thu, 10 May 2018 22:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526017432; cv=none; d=google.com; s=arc-20160816; b=HV6PRq/0UX9awaX7enZ1jscp/51H7HG7RAZyNBjUhgFCMhOCXMQ3FDf3kkjMW///FZ r1YBhmoytkYrBSXGZIHxyaBxCboSuVe/TIzP2gqwZnysQSKXLcvyNuKEHVedY6M7fouI I38kYxh9DoLQG2d3sDcEKd+Z12cftmN6ukEwmTglEWjYuKXLOfMgPqBTMqXha0B0IhCC 4fP61wRdJbV2ifoXpC70XM7pFPdTELjQm7QodY6g7ZTJdLT0x2gtM/eHlpo3EMN5cc1O agjoSQ2VyR7LOgB8ee73zXwyexanOeOmPk9b9Bk04fq2B3qTG/IbJnyZk/a23oSbRuxL ObCw== 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=7sCatnZOUp3KZax/XbKdmhSkR4srj+nACIlRaTzIcqA=; b=YzOx7AMbnz3bHFd/eru9gnMG4IjkOXI205eFpDGmoJhNC3m+zcMZNH7SSpUix8pCdh eT3tW7uITiBfI7qh092DV+ExzQB51JYoTtQBKnx4pWO8UWJzZNAGazr+q2J2TYp+lO0L 0HpmqXwvBgJOixc4hoavLcspVrE6XOHtxxCJpl5DTIs26rzzC8H7e0nDlvs/9YnzQ8ig ZfDzPY4mCAV2uRan+eWa8dALsGNqM3sL+pCErAVIYrzVrS7yRMUjILEjW6m4cVz0CuaB VJXKA9Zyp8FmQbfme3580+t4DmZax+TfK7tkvg5IA3hNC3T3jbYFA8DFj4J/hpz+Dde4 RIqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CvyndLSQ; 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 1-v6si1236779plr.483.2018.05.10.22.43.38; Thu, 10 May 2018 22:43:52 -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=CvyndLSQ; 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 S1752317AbeEKFnW (ORCPT + 99 others); Fri, 11 May 2018 01:43:22 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:40291 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751345AbeEKFnS (ORCPT ); Fri, 11 May 2018 01:43:18 -0400 Received: by mail-pf0-f195.google.com with SMTP id f189-v6so2186360pfa.7 for ; Thu, 10 May 2018 22:43:18 -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=7sCatnZOUp3KZax/XbKdmhSkR4srj+nACIlRaTzIcqA=; b=CvyndLSQOTWs7xxoM+XyIG8sgYoJE5HxgLl0zMjqusmguDHoma+GbgnOADKj4DzmPq Sjwkpoyk0/o7cmLEaHU/jQIrDetH9/gpP5fI2ya5XgZ10XhmrPwlHLeJiIxp7vxcxs7U woS0IXkaA3vAsnTYoBjDh9oyyJhD40cQ5Nij8= 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=7sCatnZOUp3KZax/XbKdmhSkR4srj+nACIlRaTzIcqA=; b=juQLxuk+3WPefPahI/NaPztPWzMMP6BxLJ09NS9RjK9/T63DE/6Jy0qn1GlN/2FS+M MSWOdM8o1IS4sMISg5++f3Vm4GtFghm5rmJXF/GIqszyXF40ABiLRa0cBWFJPSHsAhSW aBRZh6B5lcQAe7J5XN/WeLkmvaHn0NhZscorsbB5dGiSw+T7VcCdRBus+AQZgtpFuH/5 QNDaJPdhAsn4+b7ImcIzGiEnhEf4D9a/2igk4a1V2BrgXmITSXhr63rWXZGdWXhwbYh8 Q+w4Y/I/eY77/7k4K/kReiEOjRLc448aF1blMHWfVuRLYt7cABOS8ayUNDW2JVH7A7sL TDjw== X-Gm-Message-State: ALKqPwdkjoCnJfx6o0NbfGEmz6SfFxfeXRE51LllleLK9gJCL6VJc+x5 FP50FdJMYuylLBHaTKBNb6+auGyRLEA= X-Received: by 2002:a62:4ec8:: with SMTP id c191-v6mr4052569pfb.153.1526017398265; Thu, 10 May 2018 22:43:18 -0700 (PDT) Received: from localhost ([122.167.163.112]) by smtp.gmail.com with ESMTPSA id x3-v6sm5415322pff.87.2018.05.10.22.43.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 May 2018 22:43:17 -0700 (PDT) Date: Fri, 11 May 2018 11:13:15 +0530 From: Viresh Kumar To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Joel Fernandes , Steve Muckle Subject: Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required Message-ID: <20180511054315.6jhvg4pveyyeqkws@vireshk-i7> References: <20180510150553.28122-1-patrick.bellasi@arm.com> <20180510150553.28122-4-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510150553.28122-4-patrick.bellasi@arm.com> 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 10-05-18, 16:05, Patrick Bellasi wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > -static void attach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) > +static void attach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se) > { > u32 divider = LOAD_AVG_MAX - 1024 + cfs_rq->avg.period_contrib; > > @@ -3762,7 +3736,6 @@ static void attach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *s > > add_tg_cfs_propagate(cfs_rq, se->avg.load_sum); > > - cfs_rq_util_change(cfs_rq, flags); Was leaving a blank line at the end of routine intentional ? > } > > /** > @@ -3781,7 +3754,6 @@ static void detach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *s > > add_tg_cfs_propagate(cfs_rq, -se->avg.load_sum); > > - cfs_rq_util_change(cfs_rq, 0); Here too. > } -- viresh