]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched_ext: Fix typos in comments
authorzhidao su <suzhidao@xiaomi.com>
Tue, 17 Mar 2026 07:52:09 +0000 (15:52 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 17 Mar 2026 17:46:36 +0000 (07:46 -1000)
Fix five typos across three files:

- kernel/sched/ext.c: 'monotically' -> 'monotonically' (line 55)
- kernel/sched/ext.c: 'used by to check' -> 'used to check' (line 56)
- kernel/sched/ext.c: 'hardlockdup' -> 'hardlockup' (line 3881)
- kernel/sched/ext_idle.c: 'don't perfectly overlaps' ->
  'don't perfectly overlap' (line 371)
- tools/sched_ext/scx_flatcg.bpf.c: 'shaer' -> 'share' (line 21)

Signed-off-by: zhidao su <suzhidao@xiaomi.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
kernel/sched/ext_idle.c
tools/sched_ext/scx_flatcg.bpf.c

index ab8150b8de575d7ba1a6f8ab056d5dfcfc0d03ad..94548ee9ad8581ecc9aa464e47f6b9da3bf4afab 100644 (file)
@@ -73,8 +73,8 @@ static struct scx_sched *scx_enabling_sub_sched;
 #endif /* CONFIG_EXT_SUB_SCHED */
 
 /*
- * A monotically increasing sequence number that is incremented every time a
- * scheduler is enabled. This can be used by to check if any custom sched_ext
+ * A monotonically increasing sequence number that is incremented every time a
+ * scheduler is enabled. This can be used to check if any custom sched_ext
  * scheduler has ever been used in the system.
  */
 static atomic_long_t scx_enable_seq = ATOMIC_LONG_INIT(0);
@@ -4956,7 +4956,7 @@ void scx_softlockup(u32 dur_s)
  * a good state before taking more drastic actions.
  *
  * Returns %true if sched_ext is enabled and abort was initiated, which may
- * resolve the reported hardlockdup. %false if sched_ext is not enabled or
+ * resolve the reported hardlockup. %false if sched_ext is not enabled or
  * someone else already initiated abort.
  */
 bool scx_hardlockup(int cpu)
index 03be4d664267b72962392217c754a36e15cb7395..c7e4052626979cd0c64e8efa2fc3c5fc11d68144 100644 (file)
@@ -368,7 +368,7 @@ void scx_idle_update_selcpu_topology(struct sched_ext_ops *ops)
 
        /*
         * Enable NUMA optimization only when there are multiple NUMA domains
-        * among the online CPUs and the NUMA domains don't perfectly overlaps
+        * among the online CPUs and the NUMA domains don't perfectly overlap
         * with the LLC domains.
         *
         * If all CPUs belong to the same NUMA node and the same LLC domain,
index 6d3a028d7b5924f800737d0da2dd455ca4db8249..2f6ff19ca9d5a1976040678e552209c1535dfeeb 100644 (file)
@@ -18,7 +18,7 @@
  * 100/(100+100) == 1/2. At its parent level, A is competing against D and A's
  * share in that competition is 100/(200+100) == 1/3. B's eventual share in the
  * system can be calculated by multiplying the two shares, 1/2 * 1/3 == 1/6. C's
- * eventual shaer is the same at 1/6. D is only competing at the top level and
+ * eventual share is the same at 1/6. D is only competing at the top level and
  * its share is 200/(100+200) == 2/3.
  *
  * So, instead of hierarchically scheduling level-by-level, we can consider it