aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5f5b359b01b8..e1ebf9b00f5d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3668,7 +3668,7 @@ static inline void update_sd_power_savings_stats(struct sched_group *group,
3668 * capacity but still has some space to pick up some load 3668 * capacity but still has some space to pick up some load
3669 * from other group and save more power 3669 * from other group and save more power
3670 */ 3670 */
3671 if (sgs->sum_nr_running > sgs->group_capacity - 1) 3671 if (sgs->sum_nr_running + 1 > sgs->group_capacity)
3672 return; 3672 return;
3673 3673
3674 if (sgs->sum_nr_running > sds->leader_nr_running || 3674 if (sgs->sum_nr_running > sds->leader_nr_running ||