History

sched/core: Fix typos in comments

Tal Zussman committed 6 years ago

Commit b19a8881 parent 9032dc21 file · +15 −15Browse files

Unified · Split

kernel/sched/core.c+15−15
@@ -97,7 +97,7 @@ int sysctl_sched_rt_runtime = 950000; · 96 unmodified lines
9797 *
9898 * Normal scheduling state is serialized by rq->lock. __schedule() takes the
9999 * local CPU's rq->lock, it optionally removes the task from the runqueue and
100− * always looks at the local rq data structures to find the most elegible task
100+ * always looks at the local rq data structures to find the most eligible task
101101 * to run next.
102102 *
103103 * Task enqueue is also under rq->lock, possibly taken from another CPU.
@@ -518,7 +518,7 @@ static bool __wake_q_add(struct wake_q_head *head, struct task_struct *task) · 414 unmodified lines
518518
519519 /*
520520 * Atomically grab the task, if ->wake_q is !nil already it means
521− * its already queued (either by us or someone else) and will get the
521+ * it's already queued (either by us or someone else) and will get the
522522 * wakeup due to that.
523523 *
524524 * In order to ensure that a pending wakeup will observe our pending
@@ -769,7 +769,7 @@ bool sched_can_stop_tick(struct rq *rq) · 244 unmodified lines
769769 return false;
770770
771771 /*
772− * If there are more than one RR tasks, we need the tick to effect the
772+ * If there are more than one RR tasks, we need the tick to affect the
773773 * actual RR behaviour.
774774 */
775775 if (rq->rt.rr_nr_running) {
@@ -1187,14 +1187,14 @@ static inline void uclamp_rq_dec_id(struct rq *rq, struct task_struct *p, · 411 unmodified lines
11871187 * accounting was performed at enqueue time and we can just return
11881188 * here.
11891189 *
1190− * Need to be careful of the following enqeueue/dequeue ordering
1190+ * Need to be careful of the following enqueue/dequeue ordering
11911191 * problem too
11921192 *
11931193 * enqueue(taskA)
11941194 * // sched_uclamp_used gets enabled
11951195 * enqueue(taskB)
11961196 * dequeue(taskA)
1197− * // Must not decrement bukcet->tasks here
1197+ * // Must not decrement bucket->tasks here
11981198 * dequeue(taskB)
11991199 *
12001200 * where we could end up with stale data in uc_se and
@@ -2924,7 +2924,7 @@ static void ttwu_do_wakeup(struct rq *rq, struct task_struct *p, int wake_flags, · 1723 unmodified lines
29242924 #ifdef CONFIG_SMP
29252925 if (p->sched_class->task_woken) {
29262926 /*
2927− * Our task @p is fully woken up and running; so its safe to
2927+ * Our task @p is fully woken up and running; so it's safe to
29282928 * drop the rq->lock, hereafter rq is only used for statistics.
29292929 */
29302930 rq_unpin_lock(rq, rf);
@@ -3411,7 +3411,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags) · 480 unmodified lines
34113411
34123412 /*
34133413 * If the owning (remote) CPU is still in the middle of schedule() with
3414− * this task as prev, wait until its done referencing the task.
3414+ * this task as prev, wait until it's done referencing the task.
34153415 *
34163416 * Pairs with the smp_store_release() in finish_task().
34173417 *
@@ -3816,7 +3816,7 @@ void wake_up_new_task(struct task_struct *p) · 398 unmodified lines
38163816 #ifdef CONFIG_SMP
38173817 if (p->sched_class->task_woken) {
38183818 /*
3819− * Nothing relies on rq->lock after this, so its fine to
3819+ * Nothing relies on rq->lock after this, so it's fine to
38203820 * drop it.
38213821 */
38223822 rq_unpin_lock(rq, &rf);
@@ -4343,7 +4343,7 @@ unsigned long nr_iowait_cpu(int cpu) · 520 unmodified lines
43434343 }
43444344
43454345 /*
4346− * IO-wait accounting, and how its mostly bollocks (on SMP).
4346+ * IO-wait accounting, and how it's mostly bollocks (on SMP).
43474347 *
43484348 * The idea behind IO-wait account is to account the idle time that we could
43494349 * have spend running if it were not for IO. That is, if we were to improve the
@@ -4838,7 +4838,7 @@ pick_next_task(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) · 488 unmodified lines
48384838 /*
48394839 * Optimization: we know that if all tasks are in the fair class we can
48404840 * call that function directly, but only if the @prev task wasn't of a
4841− * higher scheduling class, because otherwise those loose the
4841+ * higher scheduling class, because otherwise those lose the
48424842 * opportunity to pull in more work from other CPUs.
48434843 */
48444844 if (likely(prev->sched_class <= &fair_sched_class &&
@@ -5361,7 +5361,7 @@ void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task) · 516 unmodified lines
53615361 * right. rt_mutex_slowunlock()+rt_mutex_postunlock() work together to
53625362 * ensure a task is de-boosted (pi_task is set to NULL) before the
53635363 * task is allowed to run again (and can exit). This ensures the pointer
5364− * points to a blocked task -- which guaratees the task is present.
5364+ * points to a blocked task -- which guarantees the task is present.
53655365 */
53665366 p->pi_top_task = pi_task;
53675367
@@ -5479,7 +5479,7 @@ void set_user_nice(struct task_struct *p, long nice) · 111 unmodified lines
54795479 /*
54805480 * The RT priorities are set via sched_setscheduler(), but we still
54815481 * allow the 'normal' nice value to be set - but as expected
5482− * it wont have any effect on scheduling until the task is
5482+ * it won't have any effect on scheduling until the task is
54835483 * SCHED_DEADLINE, SCHED_FIFO or SCHED_RR:
54845484 */
54855485 if (task_has_dl_policy(p) || task_has_rt_policy(p)) {
@@ -6668,7 +6668,7 @@ EXPORT_SYMBOL(__cond_resched_lock); · 1182 unmodified lines
66686668 *
66696669 * The scheduler is at all times free to pick the calling task as the most
66706670 * eligible task to run, if removing the yield() call from your code breaks
6671− * it, its already broken.
6671+ * it, it's already broken.
66726672 *
66736673 * Typical broken usage is:
66746674 *
@@ -7042,7 +7042,7 @@ void init_idle(struct task_struct *idle, int cpu) · 367 unmodified lines
70427042
70437043 #ifdef CONFIG_SMP
70447044 /*
7045− * Its possible that init_idle() gets called multiple times on a task,
7045+ * It's possible that init_idle() gets called multiple times on a task,
70467046 * in that case do_set_cpus_allowed() will not do the right thing.
70477047 *
70487048 * And since this is boot we can forgo the serialization.
@@ -8225,7 +8225,7 @@ static int cpu_cgroup_can_attach(struct cgroup_taskset *tset) · 1176 unmodified lines
82258225 return -EINVAL;
82268226 #endif
82278227 /*
8228− * Serialize against wake_up_new_task() such that if its
8228+ * Serialize against wake_up_new_task() such that if it's
82298229 * running, we're sure to observe its full state.
82308230 */
82318231 raw_spin_lock_irq(&task->pi_lock);