mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
b328ca182f
commit
673a90a1e0
1 changed files with 2 additions and 2 deletions
|
@ -4662,9 +4662,9 @@ need_resched_nonpreemptible:
|
||||||
prev->sched_class->put_prev_task(rq, prev);
|
prev->sched_class->put_prev_task(rq, prev);
|
||||||
next = pick_next_task(rq, prev);
|
next = pick_next_task(rq, prev);
|
||||||
|
|
||||||
sched_info_switch(prev, next);
|
|
||||||
|
|
||||||
if (likely(prev != next)) {
|
if (likely(prev != next)) {
|
||||||
|
sched_info_switch(prev, next);
|
||||||
|
|
||||||
rq->nr_switches++;
|
rq->nr_switches++;
|
||||||
rq->curr = next;
|
rq->curr = next;
|
||||||
++*switch_count;
|
++*switch_count;
|
||||||
|
|
Loading…
Reference in a new issue