Skip to contentSkip to conversation

sched, doc: Update sched-design-CFS.txt

PATCH In review Borislav Petkov 2 participants 2 messages Mar 22, 2011 – Mar 23, 2011 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched, doc: Update sched-design-CFS.txt

From: Borislav Petkov <[email protected]>

Correct ->dequeue_tree() thinko into sched_class->dequeue_task and drop all references to ->task_new() since it is obviously gone.

---
 Documentation/scheduler/sched-design-CFS.txt |    7 +------
 kernel/sched_idletask.c                      |    2 --
 kernel/sched_stoptask.c                      |    2 --
 3 files changed, 1 insertions(+), 10 deletions(-)
Documentation/scheduler/sched-design-CFS.txt +1 -6
index 8239ebb..9996199 100644
@@ -164,7 +164,7 @@ This is the (partial) list of the hooks:
    It puts the scheduling entity (task) into the red-black tree and
    increments the nr_running variable.
 
- - dequeue_tree(...)
+ - dequeue_task(...)
 
    When a task is no longer runnable, this function is called to keep the
    corresponding scheduling entity out of the red-black tree.  It decrements
@@ -195,11 +195,6 @@ This is the (partial) list of the hooks:
    This function is mostly called from time tick functions; it might lead to
    process switch.  This drives the running preemption.
 
- - task_new(...)
-
-   The core scheduler gives the scheduling module an opportunity to manage new
-   task startup.  The CFS scheduling module uses it for group scheduling, while
-   the scheduling module for a real-time task does not use it.
 
 
 
kernel/sched_idletask.c +0 -2
index c82f26c..a776a63 100644
@@ -94,6 +94,4 @@ static const struct sched_class idle_sched_class = {
 
 	.prio_changed		= prio_changed_idle,
 	.switched_to		= switched_to_idle,
-
-	/* no .task_new for idle tasks */
 };
kernel/sched_stoptask.c +0 -2
index 84ec9bc..1ba2bd4 100644
@@ -102,6 +102,4 @@ static const struct sched_class stop_sched_class = {
 
 	.prio_changed		= prio_changed_stop,
 	.switched_to		= switched_to_stop,
-
-	/* no .task_new for stop tasks */
 };
Signature · 1 line
1.7.4.rc2
#1 lore raw
Commit-ID:  1232d6132a986125f6a687ab9b61a4330e319270
Gitweb:     http://git.kernel.org/tip/1232d6132a986125f6a687ab9b61a4330e319270
Author:     Borislav Petkov <[email protected]>
AuthorDate: Tue, 22 Mar 2011 18:46:18 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 23 Mar 2011 14:09:41 +0100

sched, doc: Update sched-design-CFS.txt

Correct ->dequeue_tree() thinko into sched_class->dequeue_task and drop all references to ->task_new() since it is obviously gone.

Cc Peter Zijlstra <[email protected]>
Cc Mike Galbraith <[email protected]>

LKML-Reference: <[email protected]>

---
 Documentation/scheduler/sched-design-CFS.txt |    7 +------
 kernel/sched_idletask.c                      |    2 --
 kernel/sched_stoptask.c                      |    2 --
 3 files changed, 1 insertions(+), 10 deletions(-)
Documentation/scheduler/sched-design-CFS.txt +1 -6
index 8239ebb..9996199 100644
@@ -164,7 +164,7 @@ This is the (partial) list of the hooks:
    It puts the scheduling entity (task) into the red-black tree and
    increments the nr_running variable.
 
- - dequeue_tree(...)
+ - dequeue_task(...)
 
    When a task is no longer runnable, this function is called to keep the
    corresponding scheduling entity out of the red-black tree.  It decrements
@@ -195,11 +195,6 @@ This is the (partial) list of the hooks:
    This function is mostly called from time tick functions; it might lead to
    process switch.  This drives the running preemption.
 
- - task_new(...)
-
-   The core scheduler gives the scheduling module an opportunity to manage new
-   task startup.  The CFS scheduling module uses it for group scheduling, while
-   the scheduling module for a real-time task does not use it.
 
 
 
kernel/sched_idletask.c +0 -2
index c82f26c..a776a63 100644
@@ -94,6 +94,4 @@ static const struct sched_class idle_sched_class = {
 
 	.prio_changed		= prio_changed_idle,
 	.switched_to		= switched_to_idle,
-
-	/* no .task_new for idle tasks */
 };
kernel/sched_stoptask.c +0 -2
index 84ec9bc..1ba2bd4 100644
@@ -102,6 +102,4 @@ static const struct sched_class stop_sched_class = {
 
 	.prio_changed		= prio_changed_stop,
 	.switched_to		= switched_to_stop,
-
-	/* no .task_new for stop tasks */
 };