Skip to content

Commit

Permalink
sched: Fix comment for sched_info_depart
Browse files Browse the repository at this point in the history
sched_info_depart seems to be only called from
sched_info_switch(), so only on involuntary task switch.

Fix the comment to match.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Link: http://lkml.kernel.org/r/20130916083036.GA1113@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
mstsirkin authored and Ingo Molnar committed Sep 16, 2013
1 parent 3b524d6 commit 13b62e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/sched/stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 13b62e4

Please sign in to comment.