Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96033
b: refs/heads/master
c: e05510d
h: refs/heads/master
i:
  96031: 8b4dc17
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 5, 2008
1 parent b8c3486 commit 60edcd1
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: a992241de614dd2b7c97a9ba64e28c0e563f19bf
refs/heads/master: e05510d01ad1565e5e086a939261084d67ba2b10
8 changes: 4 additions & 4 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1438,8 +1438,8 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight,
{
u64 tmp;

if (unlikely(!lw->inv_weight))
lw->inv_weight = (WMULT_CONST-lw->weight/2) / (lw->weight+1);
if (!lw->inv_weight)
lw->inv_weight = 1 + (WMULT_CONST-lw->weight/2)/(lw->weight+1);

tmp = (u64)delta_exec * weight;
/*
Expand Down Expand Up @@ -8025,7 +8025,7 @@ static void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,

se->my_q = cfs_rq;
se->load.weight = tg->shares;
se->load.inv_weight = div64_u64(1ULL<<32, se->load.weight);
se->load.inv_weight = 0;
se->parent = parent;
}
#endif
Expand Down Expand Up @@ -8692,7 +8692,7 @@ static void __set_se_shares(struct sched_entity *se, unsigned long shares)
dequeue_entity(cfs_rq, se, 0);

se->load.weight = shares;
se->load.inv_weight = div64_u64((1ULL<<32), shares);
se->load.inv_weight = 0;

if (on_rq)
enqueue_entity(cfs_rq, se, 0);
Expand Down

0 comments on commit 60edcd1

Please sign in to comment.