Loading kernel/sched_fair.c +19 −22 Original line number Diff line number Diff line Loading @@ -709,9 +709,8 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) if (initial && sched_feat(START_DEBIT)) vruntime += sched_vslice(cfs_rq, se); if (!initial) { /* sleeps up to a single latency don't count. */ if (sched_feat(FAIR_SLEEPERS)) { if (!initial && sched_feat(FAIR_SLEEPERS)) { unsigned long thresh = sysctl_sched_latency; /* Loading @@ -720,8 +719,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) * fairness only relative to other SCHED_IDLE tasks, * all of which have the same weight. */ if (sched_feat(NORMALIZED_SLEEPER) && (!entity_is_task(se) || if (sched_feat(NORMALIZED_SLEEPER) && (!entity_is_task(se) || task_of(se)->policy != SCHED_IDLE)) thresh = calc_delta_fair(thresh, se); Loading @@ -734,7 +732,6 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) vruntime -= thresh; } } /* ensure we never gain time by being placed backwards. */ vruntime = max_vruntime(se->vruntime, vruntime); Loading Loading
kernel/sched_fair.c +19 −22 Original line number Diff line number Diff line Loading @@ -709,9 +709,8 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) if (initial && sched_feat(START_DEBIT)) vruntime += sched_vslice(cfs_rq, se); if (!initial) { /* sleeps up to a single latency don't count. */ if (sched_feat(FAIR_SLEEPERS)) { if (!initial && sched_feat(FAIR_SLEEPERS)) { unsigned long thresh = sysctl_sched_latency; /* Loading @@ -720,8 +719,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) * fairness only relative to other SCHED_IDLE tasks, * all of which have the same weight. */ if (sched_feat(NORMALIZED_SLEEPER) && (!entity_is_task(se) || if (sched_feat(NORMALIZED_SLEEPER) && (!entity_is_task(se) || task_of(se)->policy != SCHED_IDLE)) thresh = calc_delta_fair(thresh, se); Loading @@ -734,7 +732,6 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) vruntime -= thresh; } } /* ensure we never gain time by being placed backwards. */ vruntime = max_vruntime(se->vruntime, vruntime); Loading