From patchwork Mon Sep 26 12:19:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 77026 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1145945qgf; Mon, 26 Sep 2016 05:20:41 -0700 (PDT) X-Received: by 10.66.13.34 with SMTP id e2mr21010414pac.103.1474892441910; Mon, 26 Sep 2016 05:20:41 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e79si25017307pfb.162.2016.09.26.05.20.41; Mon, 26 Sep 2016 05:20:41 -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; 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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941484AbcIZMUk (ORCPT + 27 others); Mon, 26 Sep 2016 08:20:40 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34333 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941454AbcIZMUg (ORCPT ); Mon, 26 Sep 2016 08:20:36 -0400 Received: by mail-pa0-f53.google.com with SMTP id gp7so5460513pac.1 for ; Mon, 26 Sep 2016 05:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kwCTi3we7IyX82cCwyoXYxP07YjeS8vB6S8pCzWmh58=; b=c01p4vsPpVJGPJ8lLIB2gvJkm2hmuEywSx9ZiZQ6MbjqOKS0heF+X4SEWNO4rPHhFA mqYKsVG+dERe9QlmN3w8vYANAdLqvx5bEGv+L8PwLCm5Cw5uX3rUJ1jZlsijBLcIVs+O FvjQorxv0zb741W1hcY3z1ujZou+Tc2YLx6Fc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kwCTi3we7IyX82cCwyoXYxP07YjeS8vB6S8pCzWmh58=; b=AiKi8ZCkrRTFhTl6UKLrtBXqRNkDwEigJDSYYZbhkjNzj0LwDgffStC9IhAeXtTTxU bs/xbbuz+eFCM0sVvAckluX0fBVVqLibnTxVTucOeezC23pR37bpyLjzh/stkoAtFfLG 5VQ2k1/g/3R/YqEYozT0N01QIIxiUFmhM+iwklX8/UZUM1KUI7vukAhjpIAJeC98J4qM rmaXCi6ygrR1JxnnaclSmEFkoNB8QTNynrvHovQb2hjVYvz0YC+PuL5Npojd43TrkO5x ADk272n5KqMPIJPmqaFm/8aoixxJguNjqitglwES9MOI6GMUS6jqQvD+7VJMN/JeFvmq kx3g== X-Gm-Message-State: AA6/9RnNJuxLvhpSJoClr9hdekA2Z8TJZX+tQ+rdUVYAM0WcY3u+QQB/b/23ER+vzcjdBv7z X-Received: by 10.67.24.97 with SMTP id ih1mr2022619pad.176.1474892435679; Mon, 26 Sep 2016 05:20:35 -0700 (PDT) Received: from localhost.localdomain ([67.238.99.186]) by smtp.gmail.com with ESMTPSA id i62sm30773860pfg.89.2016.09.26.05.20.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Sep 2016 05:20:34 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, kernellwp@gmail.com Cc: yuyang.du@intel.com, Morten.Rasmussen@arm.com, linaro-kernel@lists.linaro.org, pjt@google.com, bsegall@google.com, Vincent Guittot Subject: [PATCH 6/7 v4] sched: fix task group initialization Date: Mon, 26 Sep 2016 14:19:52 +0200 Message-Id: <1474892393-5095-7-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474892393-5095-1-git-send-email-vincent.guittot@linaro.org> References: <1474892393-5095-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The moves of tasks are now propagated down to root and the utilization of cfs_rq reflects reality so it doesn't need to be estimated at init. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bd3b6b9..7acb77fb 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8903,7 +8903,7 @@ void online_fair_sched_group(struct task_group *tg) se = tg->se[i]; raw_spin_lock_irq(&rq->lock); - post_init_entity_util_avg(se); + attach_entity_cfs_rq(se); sync_throttle(tg, i); raw_spin_unlock_irq(&rq->lock); }