aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Simner <djs203@srcf.ucam.org>2008-04-29 05:08:59 -0400
committerIngo Molnar <mingo@elte.hu>2008-05-05 17:56:18 -0400
commit673a90a1e05c8127886f7659d1a457169378371f (patch)
tree77469d2b1273d960b90520a088bd82bdf0276ee7
parentb328ca182f01c2a04b85e0ee8a410720b104fbcc (diff)
sched: fix sched_info_switch not being called according to documentation
http://bugzilla.kernel.org/show_bug.cgi?id=10545 sched_stats.h says that __sched_info_switch is "called when prev != next" in the comment. sched.c should therefore do that. Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index bee9cbe13c15..3ac3d7af04a1 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4662,9 +4662,9 @@ need_resched_nonpreemptible:
4662 prev->sched_class->put_prev_task(rq, prev); 4662 prev->sched_class->put_prev_task(rq, prev);
4663 next = pick_next_task(rq, prev); 4663 next = pick_next_task(rq, prev);
4664 4664
4665 sched_info_switch(prev, next);
4666
4667 if (likely(prev != next)) { 4665 if (likely(prev != next)) {
4666 sched_info_switch(prev, next);
4667
4668 rq->nr_switches++; 4668 rq->nr_switches++;
4669 rq->curr = next; 4669 rq->curr = next;
4670 ++*switch_count; 4670 ++*switch_count;