Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp504676imm; Fri, 11 May 2018 01:43:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8xnwaIRJ5Ikc9ZYV9Wct2DTS7Kza8CnxAGM+UwSQr5iQyr9i51VnMmT0ghE9sHPK2vBnV X-Received: by 2002:a62:d8c7:: with SMTP id e190-v6mr4588147pfg.161.1526028182474; Fri, 11 May 2018 01:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526028182; cv=none; d=google.com; s=arc-20160816; b=hH3O6Ru0vZzMfV2I4TKuBqM+V748FDmd21zQ2PewMlMLirPzEbjk/h8HOOECUu5yxO F4uNNy3+JquqVFJNjEl8sc5uSdkMK0jzIceei24JXeJaqqkBm5gEp6X43Qzy3W5Q6zYH 79WMqVoxkdXopP/lrmCiJvSYoRXzR8x+vDp6I53S8a8Mq/eN6pFr8JBW64Bic1yD5Uog gXTLmufKh+UBGsoi1sVYlixpLph+vErL6h+zBuC/tcmgQa1yqoV3x13xHEMulhqgGGy9 UGQGzIIrRfFwCq4QrHatB+JZRlWi458ebDnYDkzn0hr7tVDD1VpJVEOrPT1E9IxL6y+P yQqg== 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=f5Ni/Nr3F/aUPp3oigUFnC5C0NPpRZjRoQx4kfUA/m4=; b=D34ge+RMaubyh4iXazr3guV1hGSn56WWyrnR1J+mDmBeZ8ru1TlAk/bMvjLaaOkXRi EToDdy4HxjgVtcQWpTZcXbLmFkuPWAOTqzOBqU70RPdeBRXABYPofSA3GX7uGpM8w6Np zwWht2KhQUJyxlc8LyRrE695/RJ2YtVjcM9iYK5vn4y8PM9X2JBeNGg4zcfU4DYYdi3d VE6rtX69MMSkGmq5mqioFLbVVbH5189N2ueS630/NbKfBlv8yBkpZl956JoTSDJIB+q4 8b7S4MGx7CAbxB2hfBaycYjO8A8x0JbPXDHzJYnoHiaNOJ8sOTirVNUUBL7o+i83bmzD jT4g== 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 99-v6si2768579plc.601.2018.05.11.01.42.47; Fri, 11 May 2018 01:43:02 -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; 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 S1752713AbeEKImZ (ORCPT + 99 others); Fri, 11 May 2018 04:42:25 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38060 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbeEKImY (ORCPT ); Fri, 11 May 2018 04:42:24 -0400 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 1E9201596; Fri, 11 May 2018 01:42:24 -0700 (PDT) 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 0E3BA3F73E; Fri, 11 May 2018 01:42:21 -0700 (PDT) Date: Fri, 11 May 2018 09:42:19 +0100 From: Patrick Bellasi To: Viresh Kumar 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: <20180511084219.GD30654@e110439-lin> References: <20180510150553.28122-1-patrick.bellasi@arm.com> <20180510150553.28122-4-patrick.bellasi@arm.com> <20180511054315.6jhvg4pveyyeqkws@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180511054315.6jhvg4pveyyeqkws@vireshk-i7> 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 11-May 11:13, Viresh Kumar wrote: > 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 ? No, good catch. Will fix this, thanks! > > > } > > > > /** > > @@ -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 -- #include Patrick Bellasi