]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/sched.c
sched: fix update_load_add()/sub()
[karo-tx-linux.git] / kernel / sched.c
index 9df9ba73cb7a941ea7a8feb18a58b35e726b26a4..3a4ba3dc0f498fe71d04d7b33b8cfe086695d4a5 100644 (file)
@@ -1108,11 +1108,13 @@ calc_delta_fair(unsigned long delta_exec, struct load_weight *lw)
 static inline void update_load_add(struct load_weight *lw, unsigned long inc)
 {
        lw->weight += inc;
+       lw->inv_weight = 0;
 }
 
 static inline void update_load_sub(struct load_weight *lw, unsigned long dec)
 {
        lw->weight -= dec;
+       lw->inv_weight = 0;
 }
 
 /*