Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98302
b: refs/heads/master
c: d4abc23
h: refs/heads/master
v: v3
  • Loading branch information
Bharath Ravi authored and Ingo Molnar committed Jun 19, 2008
1 parent 7221a1c commit 7db0b0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d819c49da624e3ee09b2844603d58265039eecdd
refs/heads/master: d4abc238c9f4df8b3216f3e883f5d0a07b7ac75a
6 changes: 6 additions & 0 deletions trunk/kernel/sched_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,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.
* 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.
*/
static inline void sched_info_depart(struct task_struct *t)
{
Expand All @@ -206,6 +209,9 @@ static inline void sched_info_depart(struct task_struct *t)

t->sched_info.cpu_time += delta;
rq_sched_info_depart(task_rq(t), delta);

if (t->state == TASK_RUNNING)
sched_info_queued(t);
}

/*
Expand Down

0 comments on commit 7db0b0c

Please sign in to comment.