From patchwork Tue Nov 8 08:26:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 81252 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1428886qge; Tue, 8 Nov 2016 00:27:06 -0800 (PST) X-Received: by 10.99.95.86 with SMTP id t83mr5109718pgb.0.1478593626843; Tue, 08 Nov 2016 00:27:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si35623980pfg.244.2016.11.08.00.27.06; Tue, 08 Nov 2016 00:27:06 -0800 (PST) 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 S932412AbcKHI06 (ORCPT + 27 others); Tue, 8 Nov 2016 03:26:58 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:36086 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753217AbcKHI0a (ORCPT ); Tue, 8 Nov 2016 03:26:30 -0500 Received: by mail-wm0-f43.google.com with SMTP id p190so230373792wmp.1 for ; Tue, 08 Nov 2016 00:26:30 -0800 (PST) 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=zQ1WRV/Lxf1Mem5enruCcfnAB7EkMgFDgEWjUr6bA5E=; b=j7B2TciyCrY77eTu4ea5DAuhEt6fqaDyXJr+JWk6olIM6zzvK7pqbi7B19l68cweyi XQGKRmhtsrGAwrsB/uAhLBdt31JrXVJ+dgeGjF540rVBes41rJbgXCOz9h38M5+XqzRu q8T4quts9LJ9cMKHjlqJ8t9AN6M3U7wmu+Dh4= 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=zQ1WRV/Lxf1Mem5enruCcfnAB7EkMgFDgEWjUr6bA5E=; b=XnBXJSRoGhDfJ4SNacvNhx9XLGsL5avUFgiSq8fl1pWerkSxruzPAg7dJvL7JWDqjF 0IgOE3wm8ELS4LCKdmCmwsZ684saf+UPGQ1u4OUNmbBfcoiLsm0k9GXXM/keOppu5Ubg VtCbXGHhER2f5PEAqY9IFIO2paWxun4iDg/cIGu2og4LkO1zWI/9TrhdM3a3/6Sc6B/J 0cTj9+VFYdAU+9KC6OwUOXPaOxg3Qq7YnxT8DetI8ByclsSGzHy1EWk3HkPr8oRf3RfB YasKvehydt0ONNgF/PP5eTOwUpvnPTYToL7B4JQ9kyaBbDXFiCnsBu729gkWXnnkvsST aY1A== X-Gm-Message-State: ABUngvfRSYpOaDx6urmRlq14pqGn61Y71RwXR1sV2o2VPHz6z4NR0P9qFPvna9qWrzF55tSx X-Received: by 10.194.85.193 with SMTP id j1mr8966318wjz.23.1478593589248; Tue, 08 Nov 2016 00:26:29 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:8bd4:7750:6483:2475:9666:6640]) by smtp.gmail.com with ESMTPSA id w1sm35670015wje.36.2016.11.08.00.26.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Nov 2016 00:26:28 -0800 (PST) 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, pjt@google.com, bsegall@google.com, kernellwp@gmail.com, Vincent Guittot Subject: [PATCH 6/6 v6] sched: fix task group initialization Date: Tue, 8 Nov 2016 09:26:12 +0100 Message-Id: <1478593572-26671-7-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478593572-26671-1-git-send-email-vincent.guittot@linaro.org> References: <1478593572-26671-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 a2412dc..96cc25c 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9120,7 +9120,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); }