From patchwork Mon Oct 17 09:14:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 77724 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp300229qge; Mon, 17 Oct 2016 02:16:11 -0700 (PDT) X-Received: by 10.66.22.38 with SMTP id a6mr30970078paf.39.1476695770956; Mon, 17 Oct 2016 02:16:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s90si29921445pfd.180.2016.10.17.02.16.10; Mon, 17 Oct 2016 02:16:10 -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 S934062AbcJQJQF (ORCPT + 27 others); Mon, 17 Oct 2016 05:16:05 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:33814 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933875AbcJQJPP (ORCPT ); Mon, 17 Oct 2016 05:15:15 -0400 Received: by mail-qk0-f172.google.com with SMTP id f128so213792837qkb.1 for ; Mon, 17 Oct 2016 02:15:15 -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=t6SMEuqvs5cGLz5D22LMWoDJddmLKJgX1FDLK7njLCA=; b=KkcrjR3z8DFChFFLfTKJYYV2pqaEmQOsO1utKHXcPBi1HwBFvKLkD8FBrbS6IG5URL tmFiiAT0pj7HI0fcExZECzSdWoekmmR9canaCBE9mbetiG0PDQj+dtnBYVs5TEDlIJfm GBStB7hpFkyxNZ4tqF+KuORRZZyAf8Jn89INg= 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=t6SMEuqvs5cGLz5D22LMWoDJddmLKJgX1FDLK7njLCA=; b=nBYfiNd8c/VXMf/pKCdfCkrZ01XGCTuGHc6n6xDdjbDsjTpqBM03L2HvHaJInTAQMI SySQdoiH45cVl0Q7+w7fysP0wTe3BRSP5okOMy0pCJiISTgzJW2fev7HcOSuD21n2iXg eqqKUOHODeRjlupwkSzjgaR6btA5bpqqEQCubUm/1Rsh5VkCAnn99tETIzFN6PHF7At7 1nSL7jaNUPo8+LkUqXRzGhDoJgYKkc2gSB8MbzsZl3qhn94yhd2lBbyDaJVcEYsZD+n1 MS8c14JkykRPZcOC60G6A3qEPvzcRrrgozFbfB5ZckV9R98IOo5h/4OFZpvqkYMQBl19 iWBg== X-Gm-Message-State: AA6/9Rn0lcxvost4UTM0Ggk1IS+9FLoV0lOWe6gbw3zz0wRftZ/M22gHTYiWkIEyis6d8+UZ X-Received: by 10.194.250.1 with SMTP id yy1mr10512945wjc.219.1476695713629; Mon, 17 Oct 2016 02:15:13 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:8bd4:7750:80a0:ca36:f872:d659]) by smtp.gmail.com with ESMTPSA id f2sm51341206wjr.2.2016.10.17.02.15.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 02:15:12 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com Cc: yuyang.du@intel.com, Morten.Rasmussen@arm.com, linaro-kernel@lists.linaro.org, pjt@google.com, bsegall@google.com, kernellwp@gmail.com, Vincent Guittot Subject: [PATCH 6/6 v5] sched: fix task group initialization Date: Mon, 17 Oct 2016 11:14:13 +0200 Message-Id: <1476695653-12309-7-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476695653-12309-1-git-send-email-vincent.guittot@linaro.org> References: <1476695653-12309-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(-) -- 2.7.4 diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 4c0a404..d0cf597 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9098,7 +9098,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); }