sched: Fixes typos in comments and error message
PATCH 1/1 sched: Fixes typos in comments and error message
--- kernel/sched/core.c | 2 +- kernel/sched/cputime.c | 2 +- kernel/sched/topology.c | 2 +- kernel/sched/wait_bit.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
kernel/sched/core.c +1 -1
@@ -8998,7 +8998,7 @@ void sched_release_group(struct task_group *tg)* that tg_unthrottle_up() won't add decayed cfs_rq's to it. * * We therefore defer calling unregister_fair_sched_group() to -* sched_unregister_group() which is guarantied to get called only after the +* sched_unregister_group() which is guaranteed to get called only after the * current RCU grace period has expired. */ spin_lock_irqsave (&task_group_lock, flags);
kernel/sched/cputime.c +1 -1
@@ -584,7 +584,7 @@ void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, stime =mul_u64_u64_div_u64 (stime, rtime, stime + utime);/* * Because mul_u64_u64_div_u64() can approximate on some -* achitectures; enforce the constraint that: a*b/(b+c) <= a. +* architectures; enforce the constraint that: a*b/(b+c) <= a. */ if (unlikely (stime > rtime)) stime = rtime;
kernel/sched/topology.c +1 -1
@@ -2337,7 +2337,7 @@ static struct sched_domain *build_sched_domain(struct sched_domain_topology_leveif (!cpumask_subset (sched_domain_span (child),sched_domain_span (sd))) { -pr_err ("BUG: arch topology borken\n" ); +pr_err ("BUG: arch topology broken\n" );#ifdef CONFIG_SCHED_DEBUG pr_err (" the %s domain not a subset of the %s domain\n" , child->name, sd->name);
kernel/sched/wait_bit.c +1 -1
@@ -204,7 +204,7 @@ EXPORT_SYMBOL(init_wait_var_entry);* given variable to change. wait_var_event() can be waiting for an * arbitrary condition to be true and associates that condition with an * address. Calling wake_up_var() suggests that the condition has been -* made true, but does not strictly require the condtion to use the +* made true, but does not strictly require the condition to use the * address given. * * The wake-up is sent to tasks in a waitqueue selected by hash from a
Signature · 1 line
2.25.1
On 1/18/25 14:50, Atul Kumar Pant wrote:
Not even a single line in changelog?
Also, did you do this manually or using any tool?
Quoted 26 lines
Signed-off-by Atul Kumar Pant <[email protected]>--- kernel/sched/core.c | 2 +- kernel/sched/cputime.c | 2 +- kernel/sched/topology.c | 2 +- kernel/sched/wait_bit.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)kernel/sched/core.c +1
-1@@ -8998,7 +8998,7 @@ void sched_release_group(struct task_group *tg)* that tg_unthrottle_up() won't add decayed cfs_rq's to it. * * We therefore defer calling unregister_fair_sched_group() to -* sched_unregister_group() which is guarantied to get called only after the +* sched_unregister_group() which is guaranteed to get called only after the * current RCU grace period has expired. */ spin_lock_irqsave (&task_group_lock, flags);kernel/sched/cputime.c +0
-0
kernel/sched/cputime.c void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, · line 587
Quoted 5 lines
kernel/sched/cputime.c +1
-1@@ -584,7 +584,7 @@ void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, stime =mul_u64_u64_div_u64 (stime, rtime, stime + utime);/* * Because mul_u64_u64_div_u64() can approximate on some -* achitectures; enforce the constraint that: a*b/(b+c) <= a. +* architectures; enforce the constraint that: a*b/(b+c) <= a.
fine.
kernel/sched/topology.c static struct sched_domain *build_sched_domain(struct sched_domain_topology_leve · line 2340
Quoted 13 lines
kernel/sched/cputime.c +0
-0*/ if (unlikely (stime > rtime)) stime = rtime;kernel/sched/topology.c +1
-1@@ -2337,7 +2337,7 @@ static struct sched_domain *build_sched_domain(struct sched_domain_topology_leveif (!cpumask_subset (sched_domain_span (child),sched_domain_span (sd))) { -pr_err ("BUG: arch topology borken\n" ); +pr_err ("BUG: arch topology broken\n" );
This is intended. Please look up its meaning and see the earlier mails on lkml.
kernel/sched/wait_bit.c EXPORT_SYMBOL(init_wait_var_entry); · line 207
Quoted 13 lines
kernel/sched/topology.c +0
-0#ifdef CONFIG_SCHED_DEBUG pr_err (" the %s domain not a subset of the %s domain\n" , child->name, sd->name);kernel/sched/wait_bit.c +1
-1@@ -204,7 +204,7 @@ EXPORT_SYMBOL(init_wait_var_entry);* given variable to change. wait_var_event() can be waiting for an * arbitrary condition to be true and associates that condition with an * address. Calling wake_up_var() suggests that the condition has been -* made true, but does not strictly require the condtion to use the +* made true, but does not strictly require the condition to use the
fine.
Quoted 3 lines
kernel/sched/wait_bit.c +0
-0* address given. * * The wake-up is sent to tasks in a waitqueue selected by hash from a
Quoted 5 lines · Shrikanth Hegde
On 1/18/25 14:50, Atul Kumar Pant wrote:
Not even a single line in changelog?
Sorry, missed adding it.
Quoted 1 line
Also, did you do this manually or using any tool?
Came through couple of mistakes while reading the code and one using codespell tool.
Quoted 36 lines
Quoted 28 lines
Signed-off-by Atul Kumar Pant <[email protected]>--- kernel/sched/core.c | 2 +- kernel/sched/cputime.c | 2 +- kernel/sched/topology.c | 2 +- kernel/sched/wait_bit.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)kernel/sched/core.c +1
-1@@ -8998,7 +8998,7 @@ void sched_release_group(struct task_group *tg)* that tg_unthrottle_up() won't add decayed cfs_rq's to it. * * We therefore defer calling unregister_fair_sched_group() to -* sched_unregister_group() which is guarantied to get called only after the +* sched_unregister_group() which is guaranteed to get called only after the * current RCU grace period has expired. */ spin_lock_irqsave (&task_group_lock, flags);kernel/sched/cputime.c +0
-0kernel/sched/cputime.c void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, · line 587
Quoted 5 lines
kernel/sched/cputime.c +1
-1@@ -584,7 +584,7 @@ void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, stime =mul_u64_u64_div_u64 (stime, rtime, stime + utime);/* * Because mul_u64_u64_div_u64() can approximate on some -* achitectures; enforce the constraint that: a*b/(b+c) <= a. +* architectures; enforce the constraint that: a*b/(b+c) <= a. fine.
Quoted 16 lines
kernel/sched/topology.c static struct sched_domain *build_sched_domain(struct sched_domain_topology_leve · line 2339
Quoted 12 lines
kernel/sched/cputime.c +0
-0*/ if (unlikely (stime > rtime)) stime = rtime;kernel/sched/topology.c +1
-1@@ -2337,7 +2337,7 @@ static struct sched_domain *build_sched_domain(struct sched_domain_topology_leveif (!cpumask_subset (sched_domain_span (child),sched_domain_span (sd))) { -pr_err ("BUG: arch topology borken\n" ); +pr_err ("BUG: arch topology broken\n" );This is intended. Please look up its meaning and see the earlier mails on lkml.
Thank you pointing this. Removed this in second patch
Quoted 21 lines
Quoted 9 lines
kernel/sched/topology.c +0
-0#ifdef CONFIG_SCHED_DEBUG pr_err (" the %s domain not a subset of the %s domain\n" , child->name, sd->name);kernel/sched/wait_bit.c +0
-0kernel/sched/wait_bit.c EXPORT_SYMBOL(init_wait_var_entry); · line 207
Quoted 5 lines
kernel/sched/wait_bit.c +1
-1@@ -204,7 +204,7 @@ EXPORT_SYMBOL(init_wait_var_entry);* given variable to change. wait_var_event() can be waiting for an * arbitrary condition to be true and associates that condition with an * address. Calling wake_up_var() suggests that the condition has been -* made true, but does not strictly require the condtion to use the +* made true, but does not strictly require the condition to use the fine.
Quoted 3 lines
kernel/sched/wait_bit.c +0
-0* address given. * * The wake-up is sent to tasks in a waitqueue selected by hash from a