Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp424876rdb; Thu, 5 Oct 2023 09:42:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBt6FvEI7VomLhhq+52BdICUuwWWJgduGdmuv/caO0xU2xVCzGzVdFSFcg/M3ZjVGzsC2O X-Received: by 2002:a05:6a20:96c7:b0:15d:2bff:77b with SMTP id hq7-20020a056a2096c700b0015d2bff077bmr4807481pzc.34.1696524155358; Thu, 05 Oct 2023 09:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696524155; cv=none; d=google.com; s=arc-20160816; b=rnt90oUiDJSW66PRAJky/XIjqzUzB6kMLsv3BNWAUEzc66zziSc7Ly6jnVTCLiirYM 0r24nR6moQexRk+Q8JtlsWHm3+hyVxWEALoZItJxlaq5t1NbBamCl9k1R1Fxb6hNjgZh 4PFfdVRdVAiRyBLEDnmQzvqziCngn4xWpLsBRFx+r2Em/uomKIXqduqbhpliaShiPTW0 kk29CJKmPOEcbiU4HxRXX2R3nNQfCE8fI1eoYoXu1cAbAikRR6/L+WuQMALtsSg75AvM d/fVilaY2TcGr1iRQngYmJtg6rfaR+nZnBL35XqqlRukNjEQ5i+drGtBS7iicwAb8yxj 1ZSw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yC6D3i3jig2GyzUXuhIeWlA/aD4BBPaKKdQ3mOuig0o=; fh=kY5sJNvn29qhEh2SatEVpXE2cTkcQ8AnU+xu9Bnn8Ic=; b=MwEdv6dpjycjdA+NFLXxj20UHk9QxEwa9GxqH6naJ0kp9//PvhHKIb2KKn/ZsJBEyA kMdjwjJIRc08tH5zoPDk7I5wtRnyAu+ECfDt9kfGoHWAJ4Iop7UnUVeYPSD/jNXSjODr TJX/LzESntNJiRzq6X+Hjs7pu1INv8GjdhKJ+nkheV1oyNOnZlrz0XbLl/RA8OOhtB/b BBpfGSQuSI7TC5W0mYQaH9d9qa+Q1R6qWwhSYWJF88lX6nrKg1Y+1l2mw8JYAb7UTkBF wbmmnFpzmQurUQKbs8FhXBItTuoe8+vc9JLqH6vJt09CQvaXpyy/KJUp/lEuM/DkECTs TVpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=q7JydKkW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bk13-20020a056a02028d00b0055fd1bfb109si1719562pgb.679.2023.10.05.09.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=q7JydKkW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id C0527819704F; Thu, 5 Oct 2023 09:42:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234502AbjJEQle (ORCPT + 99 others); Thu, 5 Oct 2023 12:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232409AbjJEQj6 (ORCPT ); Thu, 5 Oct 2023 12:39:58 -0400 Received: from out-196.mta1.migadu.com (out-196.mta1.migadu.com [95.215.58.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E4AC204F for ; Thu, 5 Oct 2023 09:23:38 -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=1696523016; 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; bh=yC6D3i3jig2GyzUXuhIeWlA/aD4BBPaKKdQ3mOuig0o=; b=q7JydKkWVxDOqEumo0+HHW6e98K99TlfpQTisybmzkBpdV9tlNO0Oc6eoM7K5o5ga4vsuv rWQLgrPs8xIAlCZfY3+XFCnGu3qRYqbnsedHD3t3lsBYUtKXkakIjh8dUGw7GWGrb7fydk DTh6pOZTWFsnev6TZgzTUFyPV+JK20Q= 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 0/2] Move sched_rt_entity::back to RT_GROUP_SCHED Date: Fri, 6 Oct 2023 00:23:15 +0800 Message-Id: <20231005162317.3343678-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:42:23 -0700 (PDT) The member back in struct sched_rt_entity only related to RT_GROUP_SCHED, it should not place out of RT_GROUP_SCHED, move back to RT_GROUP_SCHED. It will save a few bytes. The 1st patch is introduce for_each_sched_rt_entity_back() & use it. it no functional changes. The 2nd patch is move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block, it will save a few bytes. Yajun Deng (2): sched/rt: Introduce for_each_sched_rt_entity_back() & use it sched/rt: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block include/linux/sched.h | 2 +- kernel/sched/rt.c | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) -- 2.25.1