Commit a2e7a7eb authored by Mike Galbraith's avatar Mike Galbraith Committed by Ingo Molnar

sched: Remove unneeded indentation in sched_fair.c::place_entity()

Signed-off-by: default avatarMike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1253258365.22787.33.camel@marge.simson.net>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent df58bee2
...@@ -709,31 +709,28 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) ...@@ -709,31 +709,28 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
if (initial && sched_feat(START_DEBIT)) if (initial && sched_feat(START_DEBIT))
vruntime += sched_vslice(cfs_rq, se); vruntime += sched_vslice(cfs_rq, se);
if (!initial) { /* sleeps up to a single latency don't count. */
/* sleeps upto a single latency don't count. */ if (!initial && sched_feat(FAIR_SLEEPERS)) {
if (sched_feat(FAIR_SLEEPERS)) { unsigned long thresh = sysctl_sched_latency;
unsigned long thresh = sysctl_sched_latency;
/* /*
* Convert the sleeper threshold into virtual time. * Convert the sleeper threshold into virtual time.
* SCHED_IDLE is a special sub-class. We care about * SCHED_IDLE is a special sub-class. We care about
* fairness only relative to other SCHED_IDLE tasks, * fairness only relative to other SCHED_IDLE tasks,
* all of which have the same weight. * all of which have the same weight.
*/ */
if (sched_feat(NORMALIZED_SLEEPER) && if (sched_feat(NORMALIZED_SLEEPER) && (!entity_is_task(se) ||
(!entity_is_task(se) || task_of(se)->policy != SCHED_IDLE))
task_of(se)->policy != SCHED_IDLE)) thresh = calc_delta_fair(thresh, se);
thresh = calc_delta_fair(thresh, se);
/* /*
* Halve their sleep time's effect, to allow * Halve their sleep time's effect, to allow
* for a gentler effect of sleepers: * for a gentler effect of sleepers:
*/ */
if (sched_feat(GENTLE_FAIR_SLEEPERS)) if (sched_feat(GENTLE_FAIR_SLEEPERS))
thresh >>= 1; thresh >>= 1;
vruntime -= thresh; vruntime -= thresh;
}
} }
/* ensure we never gain time by being placed backwards. */ /* ensure we never gain time by being placed backwards. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment