Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1856805rdb; Mon, 9 Oct 2023 05:23:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJ3zQ5xpMm7qitvuAJFYU71tMz750xQ0D5UOTC2XYzJvy25IHt1AQqgzA0GiShJ5l6Bmko X-Received: by 2002:a17:90a:f414:b0:274:a5a6:120b with SMTP id ch20-20020a17090af41400b00274a5a6120bmr11856405pjb.36.1696854230828; Mon, 09 Oct 2023 05:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696854230; cv=none; d=google.com; s=arc-20160816; b=hTBGupDCDWf4DodTsIVy9fxjQuq3kCSbaiSXFMxeDxJK8y6i+Y1oj8NytpeMInp6mx 7Zru6rMRLtjUZtkyjorguhdmGw9WnIS4O0sa0HC0OWvR7AIKtpbG/2PfAufpLma/auyT t4lBmjwGEb2SfgZ6X6nMV6KPdMCYGM/L1CZRltvEPGZh6NaPILb6KFh4fmxCfJXKQxnd cPslA6/ppimT4My0YS367PhEzmpG8zHV0i7Uoq1iekYgEfrOvFxDGayPKxRfz44sMk1a TYsZx/RRc3psIS+kyWFy1zyISRHuxKSwVkfGHO1ITGy+rpr7icN7JJoxOGLstKimty2k PFhA== 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 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id pj1-20020a17090b4f4100b0027761a3a4b0si10143291pjb.0.2023.10.09.05.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; 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 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 9F4ED80203F4; Mon, 9 Oct 2023 05:23:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376374AbjJIMXb (ORCPT + 99 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 ); 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 ; 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 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 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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 05:23:48 -0700 (PDT) X-Spam-Level: ** 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 --- 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; -- 2.25.1