Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69019
b: refs/heads/master
c: 1091985
h: refs/heads/master
i:
  69017: 3200fc8
  69015: 54635eb
v: v3
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent d62cdf5 commit b69b9e4
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 19ccd97a03a026c2341b35af3ed2078a83c4a22b
refs/heads/master: 1091985b482fdd577a5c511059b9d7b4467bd15d
9 changes: 5 additions & 4 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,16 +697,17 @@ calc_delta_fair(unsigned long delta_exec, struct load_weight *lw)
return calc_delta_mine(delta_exec, NICE_0_LOAD, lw);
}

static void update_load_add(struct load_weight *lw, unsigned long inc)
static inline void update_load_add(struct load_weight *lw, unsigned long inc)
{
lw->weight += inc;
lw->inv_weight = 0;
lw->inv_weight = WMULT_CONST / lw->weight;
}

static void update_load_sub(struct load_weight *lw, unsigned long dec)
static inline void update_load_sub(struct load_weight *lw, unsigned long dec)
{
lw->weight -= dec;
lw->inv_weight = 0;
if (likely(lw->weight))
lw->inv_weight = WMULT_CONST / lw->weight;
}

/*
Expand Down

0 comments on commit b69b9e4

Please sign in to comment.