diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7fd343462597..bba57adb9504 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1596,16 +1596,7 @@ out_activate: | |||
1596 | schedstat_inc(p, se.nr_wakeups_remote); | 1596 | schedstat_inc(p, se.nr_wakeups_remote); |
1597 | update_rq_clock(rq); | 1597 | update_rq_clock(rq); |
1598 | activate_task(rq, p, 1); | 1598 | activate_task(rq, p, 1); |
1599 | /* | 1599 | check_preempt_curr(rq, p); |
1600 | * Sync wakeups (i.e. those types of wakeups where the waker | ||
1601 | * has indicated that it will leave the CPU in short order) | ||
1602 | * don't trigger a preemption, if the woken up task will run on | ||
1603 | * this cpu. (in this case the 'I will reschedule' promise of | ||
1604 | * the waker guarantees that the freshly woken up task is going | ||
1605 | * to be considered on this CPU.) | ||
1606 | */ | ||
1607 | if (!sync || rq->curr == rq->idle) | ||
1608 | check_preempt_curr(rq, p); | ||
1609 | success = 1; | 1600 | success = 1; |
1610 | 1601 | ||
1611 | out_running: | 1602 | out_running: |