Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2330092imm; Fri, 7 Sep 2018 14:47:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbFODQqObqN1Qgp/eA8+9Ql1zYI7io5bFxOiNw7NIra0wFIZesdtQlGcHzmV3KQUTpPiIbg X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr10471449pgh.293.1536356841863; Fri, 07 Sep 2018 14:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536356841; cv=none; d=google.com; s=arc-20160816; b=FMDNjz0GW764A30m31ZREp/VZF+BQEpO8/ABlH2p2utji8vJYSTvfBMWjD0JAYTR+O QM6nVgcl8TYs4Z13vXG3srldfaLpQugn5/PspLIlrVyltF95Wv+SitmabvvgVBIDwb1S 1Hbonv4WAMY6CkRxlU/TYRO3uEqds6nTh38etnQQrsQV9KBZU+W6geKfKyFz/RPgfM/x kIMY42Gn2v5kWZlO4Y2cYx+YMwC3MGJrJ1bcpJ9iczZLXRYopeY83Byk1TxalSeG4c5C hq8WC+PI573ISBIRx1qBY1+HEHPKdyBuNFbxVlmzFwjQ76PI+7UKUREoWXQdf15zJbWC aCxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kvXQu/iuJVG/gyb4I6IaI4A6lbIi+xvUysYCw28yBqk=; b=Kp/UpMQvFSPNVhXKN1pPxxDTNSrouKomzV1Wx6+7N59lJlYytjACGNp5MIMCh/B0RD ejE3JkeQVqil9DV8/qupZkuGnkr/ylIAll9PgBCJK5DlewcM0LMGS4o30rY+cCxiNLo8 Bpc8wM5MhE7azLMz0OCq7+HUPVe3KP6nITE/LeaES4YymRt58c9BA/Py+PM+sX7hA1UX n/inF9DKOtMOU87eDnCuloovwUBa5aOCI0AALETxUxHk9ytrR+v0QWGudDXGRgIefMCv Rofzu4h0OibWoeulf9g8/9nFfK27fuuCytN88FbozIbOT909MHXmslu8cbgcG7ZzqnR0 uv3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=GbYxTkkl; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127-v6si9395374pfa.189.2018.09.07.14.47.06; Fri, 07 Sep 2018 14:47:21 -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=@amazon.de header.s=amazon201209 header.b=GbYxTkkl; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731133AbeIHC2Q (ORCPT + 99 others); Fri, 7 Sep 2018 22:28:16 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:13592 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728351AbeIHC2Q (ORCPT ); Fri, 7 Sep 2018 22:28:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1536356720; x=1567892720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kvXQu/iuJVG/gyb4I6IaI4A6lbIi+xvUysYCw28yBqk=; b=GbYxTkklL9kjwjfLfWp5n3i0ob33LqHlwjzFI/cSfArtBZfH/E1Z9xlV /mJgB9XI6B/rgjhG/Dir/OedEGWVuRInA4rre9HosNCJ8d6AspqfJDUCY Fsnhl8CnXGC+kWWmhogxRnMwHBYFiXKhbWl9fQrCjP/4IXYuvz0YAs2Ra E=; X-IronPort-AV: E=Sophos;i="5.53,343,1531785600"; d="scan'208";a="629734559" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-69849ee2.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Sep 2018 21:42:49 +0000 Received: from u7588a65da6b65f.ant.amazon.com (pdx2-ws-svc-lb17-vlan3.amazon.com [10.247.140.70]) by email-inbound-relay-2a-69849ee2.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w87LfQAK083578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 7 Sep 2018 21:41:28 GMT Received: from u7588a65da6b65f.ant.amazon.com (localhost [127.0.0.1]) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTPS id w87LfNPD027171 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Sep 2018 23:41:23 +0200 Received: (from jschoenh@localhost) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Submit) id w87LfM8l027170; Fri, 7 Sep 2018 23:41:22 +0200 From: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= To: Ingo Molnar , Peter Zijlstra Cc: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= , linux-kernel@vger.kernel.org Subject: [RFC 08/60] sched: Move init_entity_runnable_average() into init_tg_cfs_entry() Date: Fri, 7 Sep 2018 23:39:55 +0200 Message-Id: <20180907214047.26914-9-jschoenh@amazon.de> X-Mailer: git-send-email 2.9.3.1.gcba166c.dirty In-Reply-To: <20180907214047.26914-1-jschoenh@amazon.de> References: <20180907214047.26914-1-jschoenh@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move init_entity_runnable_average() into init_tg_cfs_entry(), where all the other SE initialization is carried out. Signed-off-by: Jan H. Schönherr --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index c0dd5825556c..2b3fd7cd9fde 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9846,7 +9846,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent) tg->cfs_rq[i] = cfs_rq; init_cfs_rq(cfs_rq); init_tg_cfs_entry(tg, cfs_rq, se, cpu_rq(i), parent->cfs_rq[i]); - init_entity_runnable_average(se); } return 1; @@ -9918,6 +9917,7 @@ void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, /* guarantee group entities always have weight */ update_load_set(&se->load, NICE_0_LOAD); + init_entity_runnable_average(se); } static DEFINE_MUTEX(shares_mutex); -- 2.9.3.1.gcba166c.dirty