[PATCH 0/2] Move sched_rt_entity::back to RT_GROUP_SCHED

From: Yajun Deng
Date: Thu Oct 05 2023 - 12:41:45 EST


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