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 -2
+1 -2
kernel/sched_fair.c
··· 511 512 if (!initial) { 513 /* 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) 516 vruntime -= sysctl_sched_latency; 517 518 /* ensure we never gain time by being placed backwards. */
··· 511 512 if (!initial) { 513 /* sleeps upto a single latency don't count. */ 514 + if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se)) 515 vruntime -= sysctl_sched_latency; 516 517 /* ensure we never gain time by being placed backwards. */