Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100234
b: refs/heads/master
c: cb5ef42
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 27, 2008
1 parent 3c42b22 commit 7ed1e92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 051c67640e771fd6ad1b676fc0c16c379b3c6f80
refs/heads/master: cb5ef42a03a13f95a9ea94e6cda4f7a47497871f
8 changes: 4 additions & 4 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,16 +1082,16 @@ static unsigned long effective_load(struct task_group *tg, long wl, int cpu)
for_each_sched_entity(se) {
#define D(n) (likely(n) ? (n) : 1)

long S, Srw, rw, s, sn;
long S, rw, s, a, b;

S = se->my_q->tg->shares;
s = se->my_q->shares;
rw = se->my_q->load.weight;

Srw = S * rw / D(s);
sn = S * (rw + wl) / D(Srw + wg);
a = S*(rw + wl);
b = S*rw + s*wg;

wl = sn - s;
wl = s*(a-b)/D(b);
wg = 0;
#undef D
}
Expand Down

0 comments on commit 7ed1e92

Please sign in to comment.