Skip to contentSkip to conversation

sched/rt: Fix a comment in struct sched_dl_entity

PATCH New xiaofeng.yan 2 participants 3 messages May 9, 2014 – May 22, 2014 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/rt: Fix a comment in struct sched_dl_entity

Change sched_setscheduler2() to sched_setattr() in the comments. There isn't function sched_setscheduler2() in the main line. The previous EDF version defines this function
before being merged into the main line.
User should use sched_setattr() instead of sched_setscheduler2() now.

---
 include/linux/sched.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/sched.h +2 -2
index 25f54c7..ed64468 100644
@@ -1123,8 +1123,8 @@ struct sched_dl_entity {
 
 	/*
 	 * Original scheduling parameters. Copied here from sched_attr
-	 * during sched_setscheduler2(), they will remain the same until
-	 * the next sched_setscheduler2().
+	 * during sched_setattr(), they will remain the same until
+	 * the next sched_setattr().
 	 */
 	u64 dl_runtime;		/* maximum runtime for each instance	*/
 	u64 dl_deadline;	/* relative deadline of each instance	*/
Signature · 1 line
1.7.9.5
#1 lore raw
sched/rt: Fix a comment in struct sched_dl_entity
Commit-ID:  c07a16f784dfb8083c3b0157fbef18cb1292b9fc
Gitweb:     http://git.kernel.org/tip/c07a16f784dfb8083c3b0157fbef18cb1292b9fc
Author:     xiaofeng.yan <[email protected]>
AuthorDate: Fri, 9 May 2014 03:21:27 +0000
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Mon, 19 May 2014 22:02:42 +0900

sched/rt: Fix a comment in struct sched_dl_entity

Change sched_setscheduler2() to sched_setattr() in the comments. There isn't function sched_setscheduler2() in the main line. The previous EDF version defines this function
before being merged into the main line.
User should use sched_setattr() instead of sched_setscheduler2() now.

---
 include/linux/sched.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/sched.h +2 -2
index 725eef1..0f91d00 100644
@@ -1175,8 +1175,8 @@ struct sched_dl_entity {
 
 	/*
 	 * Original scheduling parameters. Copied here from sched_attr
-	 * during sched_setscheduler2(), they will remain the same until
-	 * the next sched_setscheduler2().
+	 * during sched_setattr(), they will remain the same until
+	 * the next sched_setattr().
 	 */
 	u64 dl_runtime;		/* maximum runtime for each instance	*/
 	u64 dl_deadline;	/* relative deadline of each instance	*/
#2 lore raw

[tip:sched/core] sched/rt: Fix 'struct sched_dl_entity' and dl_task_time() comments, to match the current upstream code

In reply to xiaofeng.yan
sched/rt: Fix 'struct sched_dl_entity' and dl_task_time() comments, to match the current upstream code
Commit-ID:  4027d080854d1be96ef134a1c3024d5276114db6
Gitweb:     http://git.kernel.org/tip/4027d080854d1be96ef134a1c3024d5276114db6
Author:     xiaofeng.yan <[email protected]>
AuthorDate: Fri, 9 May 2014 03:21:27 +0000
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 22 May 2014 11:16:37 +0200

sched/rt: Fix 'struct sched_dl_entity' and dl_task_time() comments, to match the current upstream code

---
 include/linux/sched.h   | 4 ++--
 kernel/sched/deadline.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
include/linux/sched.h +2 -2
index 725eef1..0f91d00 100644
@@ -1175,8 +1175,8 @@ struct sched_dl_entity {
 
 	/*
 	 * Original scheduling parameters. Copied here from sched_attr
-	 * during sched_setscheduler2(), they will remain the same until
-	 * the next sched_setscheduler2().
+	 * during sched_setattr(), they will remain the same until
+	 * the next sched_setattr().
 	 */
 	u64 dl_runtime;		/* maximum runtime for each instance	*/
 	u64 dl_deadline;	/* relative deadline of each instance	*/
kernel/sched/deadline.c +1 -1
index e0a04ae..f9ca7d1 100644
@@ -520,7 +520,7 @@ static enum hrtimer_restart dl_task_timer(struct hrtimer *timer)
 	 * We need to take care of a possible races here. In fact, the
 	 * task might have changed its scheduling policy to something
 	 * different from SCHED_DEADLINE or changed its reservation
-	 * parameters (through sched_setscheduler()).
+	 * parameters (through sched_setattr()).
 	 */
 	if (!dl_task(p) || dl_se->dl_new)
 		goto unlock;