]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched/fair: Clean up comments in 'struct cfs_rq'
authorIngo Molnar <mingo@kernel.org>
Wed, 26 Nov 2025 10:29:18 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 15 Dec 2025 06:52:44 +0000 (07:52 +0100)
 - Fix vertical alignment
 - Fix typos
 - Fix capitalization

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20251201064647.1851919-3-mingo@kernel.org
kernel/sched/sched.h

index 2173e3d4fa0d5ec574de461229c8ddb0e7f0806e..82522c98c903e313cfbeec2a7bbeef03053a9a0b 100644 (file)
@@ -670,13 +670,13 @@ struct balance_callback {
        void (*func)(struct rq *rq);
 };
 
-/* CFS-related fields in a runqueue */
+/* Fair scheduling SCHED_{NORMAL,BATCH,IDLE} related fields in a runqueue: */
 struct cfs_rq {
        struct load_weight      load;
        unsigned int            nr_queued;
-       unsigned int            h_nr_queued;       /* SCHED_{NORMAL,BATCH,IDLE} */
-       unsigned int            h_nr_runnable;     /* SCHED_{NORMAL,BATCH,IDLE} */
-       unsigned int            h_nr_idle; /* SCHED_IDLE */
+       unsigned int            h_nr_queued;            /* SCHED_{NORMAL,BATCH,IDLE} */
+       unsigned int            h_nr_runnable;          /* SCHED_{NORMAL,BATCH,IDLE} */
+       unsigned int            h_nr_idle;              /* SCHED_IDLE */
 
        s64                     avg_vruntime;
        u64                     avg_load;
@@ -690,7 +690,7 @@ struct cfs_rq {
        struct rb_root_cached   tasks_timeline;
 
        /*
-        * 'curr' points to currently running entity on this cfs_rq.
+        * 'curr' points to the currently running entity on this cfs_rq.
         * It is set to NULL otherwise (i.e when none are currently running).
         */
        struct sched_entity     *curr;
@@ -739,7 +739,7 @@ struct cfs_rq {
         */
        int                     on_list;
        struct list_head        leaf_cfs_rq_list;
-       struct task_group       *tg;    /* group that "owns" this runqueue */
+       struct task_group       *tg;    /* Group that "owns" this runqueue */
 
        /* Locally cached copy of our task_group's idle value */
        int                     idle;