Skip to content

Commit dfcb245

Browse files
author
Ingo Molnar
committed
sched: Fix various typos in comments
Go over the scheduler source code and fix common typos in comments - and a typo in an actual variable name. No change in functionality intended. Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 5f67523 commit dfcb245

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

include/linux/sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct task_group;
176176
* TASK_RUNNING store which can collide with __set_current_state(TASK_RUNNING).
177177
*
178178
* However, with slightly different timing the wakeup TASK_RUNNING store can
179-
* also collide with the TASK_UNINTERRUPTIBLE store. Loosing that store is not
179+
* also collide with the TASK_UNINTERRUPTIBLE store. Losing that store is not
180180
* a problem either because that will result in one extra go around the loop
181181
* and our @cond test will save the day.
182182
*
@@ -515,7 +515,7 @@ struct sched_dl_entity {
515515

516516
/*
517517
* Actual scheduling parameters. Initialized with the values above,
518-
* they are continously updated during task execution. Note that
518+
* they are continuously updated during task execution. Note that
519519
* the remaining runtime could be < 0 in case we are in overrun.
520520
*/
521521
s64 runtime; /* Remaining runtime for this instance */

include/linux/sched/isolation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ enum hk_flags {
1616
};
1717

1818
#ifdef CONFIG_CPU_ISOLATION
19-
DECLARE_STATIC_KEY_FALSE(housekeeping_overriden);
19+
DECLARE_STATIC_KEY_FALSE(housekeeping_overridden);
2020
extern int housekeeping_any_cpu(enum hk_flags flags);
2121
extern const struct cpumask *housekeeping_cpumask(enum hk_flags flags);
2222
extern void housekeeping_affine(struct task_struct *t, enum hk_flags flags);
@@ -43,7 +43,7 @@ static inline void housekeeping_init(void) { }
4343
static inline bool housekeeping_cpu(int cpu, enum hk_flags flags)
4444
{
4545
#ifdef CONFIG_CPU_ISOLATION
46-
if (static_branch_unlikely(&housekeeping_overriden))
46+
if (static_branch_unlikely(&housekeeping_overridden))
4747
return housekeeping_test_cpu(cpu, flags);
4848
#endif
4949
return true;

include/linux/sched/mm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static inline gfp_t current_gfp_context(gfp_t flags)
153153
{
154154
/*
155155
* NOIO implies both NOIO and NOFS and it is a weaker context
156-
* so always make sure it makes precendence
156+
* so always make sure it makes precedence
157157
*/
158158
if (unlikely(current->flags & PF_MEMALLOC_NOIO))
159159
flags &= ~(__GFP_IO | __GFP_FS);

include/linux/sched/stat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Various counters maintained by the scheduler and fork(),
99
* exposed via /proc, sys.c or used by drivers via these APIs.
1010
*
11-
* ( Note that all these values are aquired without locking,
11+
* ( Note that all these values are acquired without locking,
1212
* so they can only be relied on in narrow circumstances. )
1313
*/
1414

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ unsigned long nr_running(void)
28572857
* preemption, thus the result might have a time-of-check-to-time-of-use
28582858
* race. The caller is responsible to use it correctly, for example:
28592859
*
2860-
* - from a non-preemptable section (of course)
2860+
* - from a non-preemptible section (of course)
28612861
*
28622862
* - from a thread that is bound to a single CPU
28632863
*

kernel/sched/cputime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void account_idle_ticks(unsigned long ticks)
525525

526526
/*
527527
* Perform (stime * rtime) / total, but avoid multiplication overflow by
528-
* loosing precision when the numbers are big.
528+
* losing precision when the numbers are big.
529529
*/
530530
static u64 scale_stime(u64 stime, u64 rtime, u64 total)
531531
{

kernel/sched/deadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ static void replenish_dl_entity(struct sched_dl_entity *dl_se,
727727
* refill the runtime and set the deadline a period in the future,
728728
* because keeping the current (absolute) deadline of the task would
729729
* result in breaking guarantees promised to other tasks (refer to
730-
* Documentation/scheduler/sched-deadline.txt for more informations).
730+
* Documentation/scheduler/sched-deadline.txt for more information).
731731
*
732732
* This function returns true if:
733733
*

kernel/sched/fair.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,9 @@ void init_entity_runnable_average(struct sched_entity *se)
703703
memset(sa, 0, sizeof(*sa));
704704

705705
/*
706-
* Tasks are intialized with full load to be seen as heavy tasks until
706+
* Tasks are initialized with full load to be seen as heavy tasks until
707707
* they get a chance to stabilize to their real load level.
708-
* Group entities are intialized with zero load to reflect the fact that
708+
* Group entities are initialized with zero load to reflect the fact that
709709
* nothing has been attached to the task group yet.
710710
*/
711711
if (entity_is_task(se))
@@ -3976,8 +3976,8 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
39763976
/*
39773977
* When dequeuing a sched_entity, we must:
39783978
* - Update loads to have both entity and cfs_rq synced with now.
3979-
* - Substract its load from the cfs_rq->runnable_avg.
3980-
* - Substract its previous weight from cfs_rq->load.weight.
3979+
* - Subtract its load from the cfs_rq->runnable_avg.
3980+
* - Subtract its previous weight from cfs_rq->load.weight.
39813981
* - For group entity, update its weight to reflect the new share
39823982
* of its group cfs_rq.
39833983
*/

kernel/sched/isolation.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
*/
99
#include "sched.h"
1010

11-
DEFINE_STATIC_KEY_FALSE(housekeeping_overriden);
12-
EXPORT_SYMBOL_GPL(housekeeping_overriden);
11+
DEFINE_STATIC_KEY_FALSE(housekeeping_overridden);
12+
EXPORT_SYMBOL_GPL(housekeeping_overridden);
1313
static cpumask_var_t housekeeping_mask;
1414
static unsigned int housekeeping_flags;
1515

1616
int housekeeping_any_cpu(enum hk_flags flags)
1717
{
18-
if (static_branch_unlikely(&housekeeping_overriden))
18+
if (static_branch_unlikely(&housekeeping_overridden))
1919
if (housekeeping_flags & flags)
2020
return cpumask_any_and(housekeeping_mask, cpu_online_mask);
2121
return smp_processor_id();
@@ -24,7 +24,7 @@ EXPORT_SYMBOL_GPL(housekeeping_any_cpu);
2424

2525
const struct cpumask *housekeeping_cpumask(enum hk_flags flags)
2626
{
27-
if (static_branch_unlikely(&housekeeping_overriden))
27+
if (static_branch_unlikely(&housekeeping_overridden))
2828
if (housekeeping_flags & flags)
2929
return housekeeping_mask;
3030
return cpu_possible_mask;
@@ -33,15 +33,15 @@ EXPORT_SYMBOL_GPL(housekeeping_cpumask);
3333

3434
void housekeeping_affine(struct task_struct *t, enum hk_flags flags)
3535
{
36-
if (static_branch_unlikely(&housekeeping_overriden))
36+
if (static_branch_unlikely(&housekeeping_overridden))
3737
if (housekeeping_flags & flags)
3838
set_cpus_allowed_ptr(t, housekeeping_mask);
3939
}
4040
EXPORT_SYMBOL_GPL(housekeeping_affine);
4141

4242
bool housekeeping_test_cpu(int cpu, enum hk_flags flags)
4343
{
44-
if (static_branch_unlikely(&housekeeping_overriden))
44+
if (static_branch_unlikely(&housekeeping_overridden))
4545
if (housekeeping_flags & flags)
4646
return cpumask_test_cpu(cpu, housekeeping_mask);
4747
return true;
@@ -53,7 +53,7 @@ void __init housekeeping_init(void)
5353
if (!housekeeping_flags)
5454
return;
5555

56-
static_branch_enable(&housekeeping_overriden);
56+
static_branch_enable(&housekeeping_overridden);
5757

5858
if (housekeeping_flags & HK_FLAG_TICK)
5959
sched_tick_offload_init();

kernel/sched/sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ struct dl_rq {
637637
/*
638638
* Deadline values of the currently executing and the
639639
* earliest ready task on this rq. Caching these facilitates
640-
* the decision wether or not a ready but not running task
640+
* the decision whether or not a ready but not running task
641641
* should migrate somewhere else.
642642
*/
643643
struct {
@@ -1434,7 +1434,7 @@ static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu)
14341434
#ifdef CONFIG_SMP
14351435
/*
14361436
* After ->cpu is set up to a new value, task_rq_lock(p, ...) can be
1437-
* successfuly executed on another CPU. We must ensure that updates of
1437+
* successfully executed on another CPU. We must ensure that updates of
14381438
* per-task data have been completed by this moment.
14391439
*/
14401440
smp_wmb();

0 commit comments

Comments
 (0)