Skip to contentSkip to conversation

sched/rt: Fix comment of task_tick_rt()

PATCH New Libin 2 participants 2 messages Oct 21, 2013 – Oct 26, 2013 Scheduler

lore
Share & tools
lore

Libin

author
#0 lore raw

PATCH 1/1 sched/rt: Fix comment of task_tick_rt()

From: Li Bin <[email protected]>

This issue was introduced by 454c7999(sched/rt: Fix SCHED_RR across cgroups) that missing the word 'not'. Fix it.

---
 kernel/sched/rt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/rt.c +2 -2
index 01970c8..fa4cf84 100644
@@ -1931,8 +1931,8 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued)
 	p->rt.time_slice = sched_rr_timeslice;
 
 	/*
-	 * Requeue to the end of queue if we (and all of our ancestors) are the
-	 * only element on the queue
+	 * Requeue to the end of queue if we (and all of our ancestors) are not
+	 * the only element on the queue
 	 */
 	for_each_sched_rt_entity(rt_se) {
 		if (rt_se->run_list.prev != rt_se->run_list.next) {
Signature · 1 line
1.8.2.1
#1 lore raw

[tip:sched/core] sched/rt: Fix task_tick_rt() comment

sched/rt: Fix task_tick_rt() comment
Commit-ID:  e9aa39bb7c4415ca26484239cc3a6686d549bf4f
Gitweb:     http://git.kernel.org/tip/e9aa39bb7c4415ca26484239cc3a6686d549bf4f
Author:     Li Bin <[email protected]>
AuthorDate: Mon, 21 Oct 2013 20:15:43 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sat, 26 Oct 2013 12:25:21 +0200

sched/rt: Fix task_tick_rt() comment

This issue was introduced by 454c79999f7e ("sched/rt: Fix SCHED_RR across cgroups") that missed the word 'not'. Fix it.

---
 kernel/sched/rt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/rt.c +2 -2
index a848f52..7d57275 100644
@@ -1935,8 +1935,8 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued)
 	p->rt.time_slice = sched_rr_timeslice;
 
 	/*
-	 * Requeue to the end of queue if we (and all of our ancestors) are the
-	 * only element on the queue
+	 * Requeue to the end of queue if we (and all of our ancestors) are not
+	 * the only element on the queue
 	 */
 	for_each_sched_rt_entity(rt_se) {
 		if (rt_se->run_list.prev != rt_se->run_list.next) {