]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched/fair: Join two #ifdef CONFIG_FAIR_GROUP_SCHED blocks
authorIngo Molnar <mingo@kernel.org>
Wed, 26 Nov 2025 10:31:09 +0000 (11:31 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 15 Dec 2025 06:52:44 +0000 (07:52 +0100)
Join two identical #ifdef blocks:

  #ifdef CONFIG_FAIR_GROUP_SCHED
  ...
  #endif

  #ifdef CONFIG_FAIR_GROUP_SCHED
  ...
  #endif

Also mark nested #ifdef blocks in the usual fashion, to make
it more apparent where in a nested hierarchy of #ifdefs we
are at a glance.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Link: https://patch.msgid.link/20251201064647.1851919-2-mingo@kernel.org
kernel/sched/sched.h

index a40582d5b28820b40d81bfcd0af27e4e4cfcf011..2173e3d4fa0d5ec574de461229c8ddb0e7f0806e 100644 (file)
@@ -726,9 +726,7 @@ struct cfs_rq {
        unsigned long           h_load;
        u64                     last_h_load_update;
        struct sched_entity     *h_load_next;
-#endif /* CONFIG_FAIR_GROUP_SCHED */
 
-#ifdef CONFIG_FAIR_GROUP_SCHED
        struct rq               *rq;    /* CPU runqueue to which this cfs_rq is attached */
 
        /*
@@ -746,14 +744,14 @@ struct cfs_rq {
        /* Locally cached copy of our task_group's idle value */
        int                     idle;
 
-#ifdef CONFIG_CFS_BANDWIDTH
+# ifdef CONFIG_CFS_BANDWIDTH
        int                     runtime_enabled;
        s64                     runtime_remaining;
 
        u64                     throttled_pelt_idle;
-#ifndef CONFIG_64BIT
+#  ifndef CONFIG_64BIT
        u64                     throttled_pelt_idle_copy;
-#endif
+#  endif
        u64                     throttled_clock;
        u64                     throttled_clock_pelt;
        u64                     throttled_clock_pelt_time;
@@ -765,7 +763,7 @@ struct cfs_rq {
        struct list_head        throttled_list;
        struct list_head        throttled_csd_list;
        struct list_head        throttled_limbo_list;
-#endif /* CONFIG_CFS_BANDWIDTH */
+# endif /* CONFIG_CFS_BANDWIDTH */
 #endif /* CONFIG_FAIR_GROUP_SCHED */
 };