sched: Try to deal with low capacity, fix update_sd_power_savings_stats()
[safe/jmp/linux-2.6] / kernel / sched.c
index 5f5b359..e1ebf9b 100644 (file)
@@ -3668,7 +3668,7 @@ static inline void update_sd_power_savings_stats(struct sched_group *group,
         * capacity but still has some space to pick up some load
         * from other group and save more power
         */
-       if (sgs->sum_nr_running > sgs->group_capacity - 1)
+       if (sgs->sum_nr_running + 1 > sgs->group_capacity)
                return;
 
        if (sgs->sum_nr_running > sds->leader_nr_running ||