Message ID | 20231005162317.3343678-1-yajun.deng@linux.dev |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp425811vqb; Thu, 5 Oct 2023 09:41:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH1NiQbag8U2hEWN6Vv0pG4jfNYedzp9yiIuW3tmoNEoa+NrV/6zlBHwORMksFaXGzIzNd X-Received: by 2002:a17:902:c40a:b0:1c3:a4f2:7c92 with SMTP id k10-20020a170902c40a00b001c3a4f27c92mr6712484plk.65.1696524113352; Thu, 05 Oct 2023 09:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696524113; cv=none; d=google.com; s=arc-20160816; b=cKvcfMV/xHxmYzZ7U+/YRqEBfM+wpI2FCibkErI9usFlMpRmBcMt4dE11AE5V6iMKg WaKBt4gLi9K1+mnMP6VvFXSuFspyvFZbhW+iqCTPwfcIxnEGgbhsER4UvKHKu8EiPpXM 12dbydArs/s+FAAJwcxU/T6JR/6m/i9sRHmDk/VA7fePBSnnen2ALZRam7d9GhARxsJJ FGvl/fZ+Gzn7WI6/6doRVc16UVvThfWhcSW5koF8oEeXuIpqlvFYLuCl+Aq2OdM1Usp6 6+JDo2uwJkZ4fKfL71JKnmEjrIkh72R43OH9EYnspejG06o11omD9vt2VyoaNNiPdlzf VLUQ== 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.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 s11-20020a170903200b00b001c3c94d212fsi1758226pla.97.2023.10.05.09.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:41:53 -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=q7JydKkW; 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 9EDA480412F1; Thu, 5 Oct 2023 09:41:50 -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 S234507AbjJEQlf (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Thu, 5 Oct 2023 12:41:35 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <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 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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]); Thu, 05 Oct 2023 09:41:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778934468277915150 X-GMAIL-MSGID: 1778934468277915150 |
Series |
Move sched_rt_entity::back to RT_GROUP_SCHED
|
|
Message
Yajun Deng
Oct. 5, 2023, 4:23 p.m. UTC
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(-)