sched: fix update_load_add()/sub()

Clear the cached inverse value when updating load. This is needed for
calc_delta_mine() to work correctly when using the rq load.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>

+2
+2
kernel/sched.c
··· 1108 static inline void update_load_add(struct load_weight *lw, unsigned long inc) 1109 { 1110 lw->weight += inc; 1111 } 1112 1113 static inline void update_load_sub(struct load_weight *lw, unsigned long dec) 1114 { 1115 lw->weight -= dec; 1116 } 1117 1118 /*
··· 1108 static inline void update_load_add(struct load_weight *lw, unsigned long inc) 1109 { 1110 lw->weight += inc; 1111 + lw->inv_weight = 0; 1112 } 1113 1114 static inline void update_load_sub(struct load_weight *lw, unsigned long dec) 1115 { 1116 lw->weight -= dec; 1117 + lw->inv_weight = 0; 1118 } 1119 1120 /*