Skip to content

Commit 6cbf1c1

Browse files
author
Ingo Molnar
committed
sched: do not hurt SCHED_BATCH on wakeup
measurements by Yanmin Zhang have shown that SCHED_BATCH tasks benefit if they run the same place_entity() logic as SCHED_OTHER tasks - so uniformize behavior in this area. Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 2bacec8 commit 6cbf1c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/sched_fair.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
511511

512512
if (!initial) {
513513
/* sleeps upto a single latency don't count. */
514-
if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se) &&
515-
task_of(se)->policy != SCHED_BATCH)
514+
if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se))
516515
vruntime -= sysctl_sched_latency;
517516

518517
/* ensure we never gain time by being placed backwards. */

0 commit comments

Comments
 (0)