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

Message ID 20231005162317.3343678-1-yajun.deng@linux.dev
Headers
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(-)