Message ID | 20231009122244.2394336-1-yajun.deng@linux.dev |
---|---|
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 x8csp1828827vqo; Mon, 9 Oct 2023 05:23:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpJQEU18d6W7+Oo/IbQdfvCPsCxI/bJUxyI822LuV/G+n5z5V0/mOjRUwhSgFK9hUPTdNh X-Received: by 2002:a9d:6f15:0:b0:6b7:518a:1672 with SMTP id n21-20020a9d6f15000000b006b7518a1672mr16831213otq.34.1696854208798; Mon, 09 Oct 2023 05:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696854208; cv=none; d=google.com; s=arc-20160816; b=HmanQ4tBAj9kcb9VCm2YebamsldJCs7oxaZysnTITQbVIEWYvYjsiMLiu6aRGRjsWU RIMIPCfCzS3nsH9H93GSXTomvJ07MFbB8xOD/1CASSUTt4YQxRiQCFE7iG2XRJQodpLZ xX6nb5rg4GLFB/XIzGtjVifsX+j6yYI0f/gvPKSciX66mKXLd8+nIWPVu18M63sX9Mio vF46v48pezQnW4sackht3ro8Q/MQAWwrydiCjPk4eUMmRi/PxeNyGohW5E0nAbkWP/gS 0fYYRHFw5veJy64Dpa/CEaqH7CWeCzrfJUYzUWZOblbxsQ0IAzuIu1tgom6I2IhTFf6N Gu+w== 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=iwdeMq5QLqWQaEIDgzRtZ3AT4JmA1LYOUpcs8Cc0wKA=; fh=kY5sJNvn29qhEh2SatEVpXE2cTkcQ8AnU+xu9Bnn8Ic=; b=XcfXZ0GV24y/zvKv8S7FDuS5Nkb+awCwXN5cbG6cyc8nGlWJbFUJarExW8JBNSI3wQ x1/XPcqhjqHJ0h5FRIylEsl6lu7AtC+dMoQ0ssRnCh0zaPJJo3occ7GmynXoXXrpcwwI 4NQCWL9g2Mpbft6nZ0kwl+eSyl2SuYlxkywJViizJDfizKRHvOUdPBFxwFXRGQgJXmQO 77vNZnOP7x+i1f/5MX9MsXxTu008kY3JjeQEXj2fxBM7y1Lz8eW24DduntQxZyCHJXRm jO+wioZBGb4g0+GWH1xNK+f6eBf7BEp0J3tx8JpyEWTCS42r2zuFljGZ42JaLFF2bvgj Baig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BL6Hreob; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x20-20020a631714000000b0057c9e0c7bb8si9355709pgl.312.2023.10.09.05.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BL6Hreob; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 9C90780ABB16; Mon, 9 Oct 2023 05:23:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376320AbjJIMXG (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Mon, 9 Oct 2023 08:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376286AbjJIMXE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Oct 2023 08:23:04 -0400 Received: from out-199.mta0.migadu.com (out-199.mta0.migadu.com [IPv6:2001:41d0:1004:224b::c7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DDCDC6 for <linux-kernel@vger.kernel.org>; Mon, 9 Oct 2023 05:23:02 -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=1696854180; 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=iwdeMq5QLqWQaEIDgzRtZ3AT4JmA1LYOUpcs8Cc0wKA=; b=BL6Hreobou9mTA5iSEyUBjYcJe/XzhePBNgXCf1oVPkA2q7g8NxrKyYhHzqzZZHUl53BEC 3M7wJ9o4ivJD/EZKCoCaIhYSlq7RByz3HB1+Fs0I2GV7eD8xV7OSoqS2ClYCNVodXSK4Ra hGFv+H59kY6nPSN3h1dIwhgCVHqmHTE= 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 0/3] sched/rt: Move sched_rt_entity::back to CONFIG_RT_GROUP_SCHED Date: Mon, 9 Oct 2023 20:22:41 +0800 Message-Id: <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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 05:23:26 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779280599080380552 X-GMAIL-MSGID: 1779280599080380552 |
Series |
sched/rt: Move sched_rt_entity::back to CONFIG_RT_GROUP_SCHED
|
|
Message
Yajun Deng
Oct. 9, 2023, 12:22 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 init 'back' in init_tg_rt_entry, it remove the call to back when CONFIG_RT_GROUP_SCHED is disabled. The 3rd patch is move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block, it will save a few bytes. Yajun Deng (3): sched/rt: Introduce for_each_sched_rt_entity_back() & use it sched/rt: Init 'back' in init_tg_rt_entry sched/headers: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block include/linux/sched.h | 2 +- kernel/sched/rt.c | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-)
Comments
Kindly ping... Thanks. On 2023/10/9 20:22, Yajun Deng wrote: > 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 init 'back' in init_tg_rt_entry, it remove the call to > back when CONFIG_RT_GROUP_SCHED is disabled. > > The 3rd patch is move sched_rt_entity::back to under the > CONFIG_RT_GROUP_SCHED block, it will save a few bytes. > > Yajun Deng (3): > sched/rt: Introduce for_each_sched_rt_entity_back() & use it > sched/rt: Init 'back' in init_tg_rt_entry > sched/headers: Move sched_rt_entity::back to under the > CONFIG_RT_GROUP_SCHED block > > include/linux/sched.h | 2 +- > kernel/sched/rt.c | 17 ++++++++++++----- > 2 files changed, 13 insertions(+), 6 deletions(-) >