Skip to contentSkip to conversation

sched: tweak comment for sched_info_depart

PATCH New Michael S. Tsirkin 2 participants 2 messages Sep 16, 2013 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: tweak comment for sched_info_depart

sched_info_depart seems to be only called from sched_info_switch, so only on involuntary task switch.
Tweak comment to match.

---
 kernel/sched/stats.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/sched/stats.h +3 -2
index 891ccab..2e63fc7 100644
@@ -115,8 +115,9 @@ static inline void sched_info_queued(struct rq *rq, struct task_struct *t)
 }
 
 /*
- * Called when a process ceases being the active-running process, either
- * voluntarily or involuntarily.  Now we can calculate how long we ran.
+ * Called when a process ceases being the active-running process involuntarily
+ * due, typically, to expiring its time slice (this may also be called when
+ * switching to the idle task).  Now we can calculate how long we ran.
  * Also, if the process is still in the TASK_RUNNING state, call
  * sched_info_queued() to mark that it has now again started waiting on
  * the runqueue.
Signature · 1 line
MST
#1 lore raw

[tip:sched/urgent] sched: Fix comment for sched_info_depart

sched: Fix comment for sched_info_depart
Commit-ID:  13b62e46d5407c7d619aea1dc9c3e0991b631b57
Gitweb:     http://git.kernel.org/tip/13b62e46d5407c7d619aea1dc9c3e0991b631b57
Author:     Michael S. Tsirkin <[email protected]>
AuthorDate: Mon, 16 Sep 2013 11:30:36 +0300
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 16 Sep 2013 11:18:34 +0200

sched: Fix comment for sched_info_depart

sched_info_depart seems to be only called from sched_info_switch(), so only on involuntary task switch.

Fix the comment to match.

---
 kernel/sched/stats.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/sched/stats.h +3 -2
index 5aef494..c7edee7 100644
@@ -104,8 +104,9 @@ static inline void sched_info_queued(struct task_struct *t)
 }
 
 /*
- * Called when a process ceases being the active-running process, either
- * voluntarily or involuntarily.  Now we can calculate how long we ran.
+ * Called when a process ceases being the active-running process involuntarily
+ * due, typically, to expiring its time slice (this may also be called when
+ * switching to the idle task).  Now we can calculate how long we ran.
  * Also, if the process is still in the TASK_RUNNING state, call
  * sched_info_queued() to mark that it has now again started waiting on
  * the runqueue.