Message ID | 20160428111800.GA30218@vingu-laptop |
---|---|
State | New |
Headers | show |
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0b6659d..3411eb7 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6953,7 +6953,7 @@ static inline void calculate_imbalance(struct lb_env *env, struct sd_lb_stats *s if (busiest->group_type == group_overloaded && local->group_type == group_overloaded) { unsigned long min_cpu_load = - kernel_to_user_load(NICE_0_LOAD) * busiest->group_capacity; + busiest->group_capacity * NICE_0_LOAD / SCHED_CAPACITY_SCALE; load_above_capacity = busiest->sum_nr_running * NICE_0_LOAD; if (load_above_capacity > min_cpu_load) load_above_capacity -= min_cpu_load;