aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDavid Simner <djs203@srcf.ucam.org>2008-04-29 10:08:59 +0100
committerIngo Molnar <mingo@elte.hu>2008-05-05 23:56:18 +0200
commit673a90a1e05c8127886f7659d1a457169378371f (patch)
tree77469d2b1273d960b90520a088bd82bdf0276ee7 /kernel
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index bee9cbe13c1..3ac3d7af04a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4662,9 +4662,9 @@ need_resched_nonpreemptible:
prev->sched_class->put_prev_task(rq, prev);
next = pick_next_task(rq, prev);
- sched_info_switch(prev, next);
-
if (likely(prev != next)) {
+ sched_info_switch(prev, next);
+
rq->nr_switches++;
rq->curr = next;
++*switch_count;