aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-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;