Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1828807rdb; Mon, 9 Oct 2023 04:32:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbVzdTEquaeZ7YJcunth1pE39T/DscFVVaY84FdtUselo9XMC0V4J4jKbz6y5ZrAKdICPs X-Received: by 2002:a05:6358:3406:b0:135:4003:7851 with SMTP id h6-20020a056358340600b0013540037851mr15848576rwd.19.1696851135477; Mon, 09 Oct 2023 04:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696851135; cv=none; d=google.com; s=arc-20160816; b=oiFbdyC3SJKhkafFXv0AcWIfAYiHPpaKzisziGL5gpjbSHVdEap9AIY66zUsDrIznd C3P6ssfzTKQEz31rKDqPE/FQvQLhkjjmJRsr7L6E9+lg/OoPcwb74aabk3tIYFW92WPm Y7DwN3usX6TXrAnfIBx7ZCyBUeAN9p5Oz0Bopr8cseBbftG45CXLBdNGw0S6G2RS1B4d F2mjfiMFrIoIJ/OxaN+PESWH9/QcMCOFMMIZb5rE+xC4hug7b2QoTOyi74fD4kXAstTf khH6hhoKYxUdTO6rPbAPvptJGVrxvGkOxLKRDAS5oLZfyWOYz5HdxQrP8RTM+3OTPb4R jNpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=ypvN2XpqA8dd13EXMeITEkp7Kaqjv9X9NOFxyBYPp0E=; fh=yuUYAWVNHOtNOVXfHbDzOfyhHEjVkUA0VR4N/COjqQA=; b=TjHfAWbrMqb3q1prp8R0FybtcZT70fORqlUP7Hla8j42dOaqdQjwx2XDcKpafTFupr EANfymm7N1WB/xQRSmswKJp98tWG2zM91btG9anaWxn1GJNnQz2bWGMw9IuBxQVCmJPF jX5y1rVoPY1/ROMS+68QoCYMZpCEkidFRRAAuQeuVeqbYUwg9pWiNykl3M7IwTc1L9gD B2KTKG+Q5Xq4plZj3XWaBzLWL/UQ0FMFqVwj/+Nt8tQWaVH+xjVJ+2E62Yc85zIOJEGv xGyUDWUsd0RRc5LltQOFK76e3pLSu3LfAnxuQxGJIHviRzuUF6YSozhgu2n6P9/YxQDf AA+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="xC/nJWFH"; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x5-20020a654145000000b0058bc1c8570csi5284646pgp.453.2023.10.09.04.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 04:32:15 -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="xC/nJWFH"; 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 2D91D8083AC8; Mon, 9 Oct 2023 04:32:13 -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 S1346222AbjJILby (ORCPT + 99 others); Mon, 9 Oct 2023 07:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbjJILbm (ORCPT ); Mon, 9 Oct 2023 07:31:42 -0400 Received: from out-210.mta0.migadu.com (out-210.mta0.migadu.com [91.218.175.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F68710C4 for ; Mon, 9 Oct 2023 04:31:31 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1696851089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ypvN2XpqA8dd13EXMeITEkp7Kaqjv9X9NOFxyBYPp0E=; b=xC/nJWFHMyG8w9XFZjH7wF8Hl9CFzSq+66CSaKoOUoIjbjGjLnnhDMlW2EnL/FXI4CwvWs xduNRs7Ju51Fx9nkkJydt7YH6J5eMosBTSW3Zd0V65pukXAlpUf0lTg7P8I0ozHYN5paKL x2l30tUdkI3RZAaEJS1rJMoJsCXrBco= Date: Mon, 9 Oct 2023 19:31:19 +0800 MIME-Version: 1.0 Subject: Re: [PATCH 2/2] sched/rt: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block Content-Language: en-US To: Ingo Molnar Cc: 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, linux-kernel@vger.kernel.org References: <20231005162317.3343678-1-yajun.deng@linux.dev> <20231005162317.3343678-3-yajun.deng@linux.dev> <5a3342ef-f14f-173c-630f-6b474bded257@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yajun Deng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 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 04:32:13 -0700 (PDT) X-Spam-Level: ** On 2023/10/9 19:26, Ingo Molnar wrote: > * Yajun Deng wrote: > >> On 2023/10/9 18:16, Ingo Molnar wrote: >>> * Yajun Deng wrote: >>> >>>> The member back in struct sched_rt_entity only related to RT_GROUP_SCHED, >>>> So move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block. It >>>> will save a few bytes. >>>> >>>> Also, init child when parent isn't NULL in init_tg_rt_entry(). >>>> >>>> Signed-off-by: Yajun Deng >>>> --- >>>> include/linux/sched.h | 2 +- >>>> kernel/sched/rt.c | 18 +++++++++--------- >>>> 2 files changed, 10 insertions(+), 10 deletions(-) >>>> >>>> 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; >>> Title claims this change - the rest of the changes should be in a separate >>> patch: >> >> Okay. I will send v2. > It's ~v7 already by my count, isn't it? May be. If we count from the earliest. > > Thanks, > > Ingo