aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 9df9ba73cb7a..3a4ba3dc0f49 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1108,11 +1108,13 @@ calc_delta_fair(unsigned long delta_exec, struct load_weight *lw)
1108static inline void update_load_add(struct load_weight *lw, unsigned long inc) 1108static inline void update_load_add(struct load_weight *lw, unsigned long inc)
1109{ 1109{
1110 lw->weight += inc; 1110 lw->weight += inc;
1111 lw->inv_weight = 0;
1111} 1112}
1112 1113
1113static inline void update_load_sub(struct load_weight *lw, unsigned long dec) 1114static inline void update_load_sub(struct load_weight *lw, unsigned long dec)
1114{ 1115{
1115 lw->weight -= dec; 1116 lw->weight -= dec;
1117 lw->inv_weight = 0;
1116} 1118}
1117 1119
1118/* 1120/*