Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2331214imm; Fri, 7 Sep 2018 14:48:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZF5uQgzIYih/8M34AcLnj+QQaKEIUMVjYp3VCV6nm/PsTtBWGIsJAEPwQx+ADusiMx5fw5 X-Received: by 2002:a63:fd52:: with SMTP id m18-v6mr10422021pgj.304.1536356925377; Fri, 07 Sep 2018 14:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536356925; cv=none; d=google.com; s=arc-20160816; b=jHKFTOdYOSQYMgMd+1f0W3las7scYUTPEfe8nfO9XY8WZcKRY6Kk3zTTxfMsc7Xhf9 chnqQUOf/HIbF+7D3K7okXGfozYeDsL/6SjPgStf+s2Q9oiEUN9sTPJycFIRDz8RPnul IBy39b90FYJSD9s2niouNLg9SKl5R+VJzoeAotxfk0RgIkXssjnwEXNXNT0HId1KRRuk RaZgrWLANcN2O42n6azoD6RuhrEg9X+4XBkDy89I6yBKN8CNk+EhAqtC+Gfw0bFhL/Yv +WIYxUlEWX0GHOHMSN0N+r6Q8l9VQj846MpFHKItmRQ0B8DbXss0edtAGA62UHSeb7sn qNUQ== 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=JGKYGfdb0hC2kfmZzRQE7diPafx0OTb2fU7Ebd15r9U=; b=FlCIyRmaSCwvFTkAN3rNjliT0XC2zSWYym5xW9v/qSAwV9mlhCY6V4E3/1CfOFHDZh 1fLOTI3k1JyMn4aB5GUBuVa9l5J7RvTwxGvHPmUZ2xNm0W+UmUIRYlMWvw761p4pMLRu YL3rTNtXm4nRcURSPD5xeR6fDdz/WLCPkptRM7g9jTvC0jMzZW6EeuPNi5trP+dJiIa4 mrz52cRc2hZG7EuBuszCZzJshYKHDxXpRiHkoQ/f1JTFTPUYIbdK2i05qYYvyxj51sJR QhKyU7F00wP+uFNNWwOwqtE2SrrXgY/v8rJs8fHNJujyzjSrpgBpYtwHnOE/xE9CxDQ3 VrDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=Hbv30rMD; 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 d39-v6si9535255pla.41.2018.09.07.14.48.30; Fri, 07 Sep 2018 14:48:45 -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=Hbv30rMD; 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 S1731227AbeIHC3N (ORCPT + 99 others); Fri, 7 Sep 2018 22:29:13 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:31852 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730831AbeIHC3M (ORCPT ); Fri, 7 Sep 2018 22:29:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1536356776; x=1567892776; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JGKYGfdb0hC2kfmZzRQE7diPafx0OTb2fU7Ebd15r9U=; b=Hbv30rMDhmniZ+mj0E75F9Cgy26kszsrmCSAOKsup/n08W3FzY3NWG7j gV8vAzYRBHwDdhgrTBV88vtzVYb3MRxot57QTMueFc+hHJVI1x1X+gu9I gL3LYJLVOy3NFsTbbgNDdwABeeeYohcsg5yIruLTLPHhg9Nzlxddxh83R A=; X-IronPort-AV: E=Sophos;i="5.53,343,1531785600"; d="scan'208";a="757370695" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1a-af6a10df.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Sep 2018 21:43:41 +0000 Received: from u7588a65da6b65f.ant.amazon.com (iad7-ws-svc-lb50-vlan3.amazon.com [10.0.93.214]) by email-inbound-relay-1a-af6a10df.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w87LfTY6031006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 7 Sep 2018 21:41:32 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 w87LfRZo027194 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Sep 2018 23:41:27 +0200 Received: (from jschoenh@localhost) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Submit) id w87LfQMi027193; Fri, 7 Sep 2018 23:41:26 +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 10/60] sched: Use parent_entity() in more places Date: Fri, 7 Sep 2018 23:39:57 +0200 Message-Id: <20180907214047.26914-11-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 Replace open-coded cases of parent_entity() with actual parent_entity() invocations. This will make later checks within parent_entity() more useful. Signed-off-by: Jan H. Schönherr --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bccd7a66858e..5d6225aedbfe 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -263,7 +263,7 @@ static inline struct task_struct *task_of(struct sched_entity *se) /* Walk up scheduling entities hierarchy */ #define for_each_sched_entity(se) \ - for (; se; se = se->parent) + for (; se; se = parent_entity(se)) static inline struct cfs_rq *task_cfs_rq(struct task_struct *p) { @@ -9653,7 +9653,7 @@ static void propagate_entity_cfs_rq(struct sched_entity *se) struct cfs_rq *cfs_rq; /* Start to propagate at parent */ - se = se->parent; + se = parent_entity(se); for_each_sched_entity(se) { cfs_rq = cfs_rq_of(se); -- 2.9.3.1.gcba166c.dirty