[v7,3/3] sched/headers: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block
Message ID | 20231009122244.2394336-4-yajun.deng@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1828992vqo; Mon, 9 Oct 2023 05:23:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWOWAJUgytTqMrHwHTPVptmdAGl3oQ+9F+DtvmHHOwEeoxJl7K4vAgwcfXr9gT/MQMA+Xu X-Received: by 2002:a9d:7751:0:b0:6c4:7c1b:9064 with SMTP id t17-20020a9d7751000000b006c47c1b9064mr18185618otl.21.1696854227797; Mon, 09 Oct 2023 05:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696854227; cv=none; d=google.com; s=arc-20160816; b=qickfkv6wRg0RApkGN4FupysE8hclT2g4LvMKspGC+FH6Y1z3toRlHCA6dIXDpo37U K/YLZF71aBwnX0LphMqqXilyksreValamQvqtLAlWYw0cvAZTIbCIJkYRE3jh2Gc7wR2 +s5Z/ouPiTiaOLsHTu5sbxZTEBWL/8JpcfGyk+sC73SPROzWE357VB5SnVvUx0Qk8Afs ZoOZ0I5+fDg9lVIhQEO3tGT64hQT9MNud5VRBxEI/EwSfktBhfy15xvjBhM/U8kJ4lgd VEFSJHnEXlU/xQ6D5ZoV+3GquQ3+GNROHNjDYYIZ1N+yvX9PUUyoIDhB32uCiRZWXLfZ KDLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pOSdnU//ZRui2s27MXfjnW8MdGjzkW8wxZ4C5+bH6Oo=; fh=kY5sJNvn29qhEh2SatEVpXE2cTkcQ8AnU+xu9Bnn8Ic=; b=tSM3Nwn8rymNB7ibMYbQIWiu6OTWd90HxkMd3a29541s8v4+obHNDINIRJVAAXV7sG dSGAK3kzP76AW9nhcs3MRRY37Jf4idJK5sxGZlr5OSRw5bI6CN3BcDCIj0H+MhtpGcEs E59muUwEof5WlaQypYGfc2Qej3OLYg4Ac8EcpRtIqrpP/l40oDyqG3QYou7NY8RLYY2A qlBFyKCC6iWW3o0nRbFg+jP9TYGBDTe/o0Q5IuIhYLGlYsoah3FgNUr+6d4q/XVyM1q7 qwnxEH6wtrDUL0gQr/e8je1RwLJa1XwGIrZ6IF5ci/CTZ2wI931MHM9bRfjFVLcdEx1X 4f/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PvcXroXr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a26-20020a63705a000000b00565eb0b2e66si9948532pgn.864.2023.10.09.05.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PvcXroXr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8D68B8036EB5; Mon, 9 Oct 2023 05:23:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376385AbjJIMXb (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Mon, 9 Oct 2023 08:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376364AbjJIMXa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Oct 2023 08:23:30 -0400 Received: from out-208.mta0.migadu.com (out-208.mta0.migadu.com [91.218.175.208]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 517D899 for <linux-kernel@vger.kernel.org>; Mon, 9 Oct 2023 05:23:27 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1696854206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pOSdnU//ZRui2s27MXfjnW8MdGjzkW8wxZ4C5+bH6Oo=; b=PvcXroXrprpbYbEiTKcBlDzrNxIHYqJQlTyn41kwGmaXE3WAnFw/W12yM8Dh7G5G4p9n2L jiy/MdWQj2Dwe14V1229DeYuc5rdV+oVyf0hmEy6v2/e7BhMxMMHD/GGn6i4bULZTecDms H99KLe2PP7QMZU3Xvyx79kfOGc5Jwgk= From: Yajun Deng <yajun.deng@linux.dev> To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com Cc: linux-kernel@vger.kernel.org, Yajun Deng <yajun.deng@linux.dev> Subject: [PATCH v7 3/3] sched/headers: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block Date: Mon, 9 Oct 2023 20:22:44 +0800 Message-Id: <20231009122244.2394336-4-yajun.deng@linux.dev> In-Reply-To: <20231009122244.2394336-1-yajun.deng@linux.dev> References: <20231009122244.2394336-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 09 Oct 2023 05:23:45 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779280618830140003 X-GMAIL-MSGID: 1779280618830140003 |
Series |
sched/rt: Move sched_rt_entity::back to CONFIG_RT_GROUP_SCHED
|
|
Commit Message
Yajun Deng
Oct. 9, 2023, 12:22 p.m. UTC
We already remove the call to the 'back' member when CONFIG_RT_GROUP_SCHED
is disabled.
It's safe to move sched_rt_entity::back to under the
CONFIG_RT_GROUP_SCHED block, it would save a few bytes.
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
---
v7: Only move back under the CONFIG_RT_GROUP_SCHED block.
v6: Independent patch.
v5: Resend it.
v4: Missed rt_se = root in dequeue_rt_stack().
v3: Keep parent is NULL in init_tg_rt_entry().
v2: Add WARN_ON_ONCE in init_tg_rt_entry().
v1: https://lore.kernel.org/all/20230801062714.3424299-1-yajun.deng@linux.dev/
---
include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h index 292c31697248..d0fe56603e60 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -597,8 +597,8 @@ struct sched_rt_entity { unsigned short on_rq; unsigned short on_list; - struct sched_rt_entity *back; #ifdef CONFIG_RT_GROUP_SCHED + struct sched_rt_entity *back; struct sched_rt_entity *parent; /* rq on which this entity is (to be) queued: */ struct rt_rq *rt_rq;