From: Peter Zijlstra Date: Tue, 29 Jul 2014 15:00:21 +0000 (+0200) Subject: sched/fair: Make calculate_imbalance() independent X-Git-Tag: fixes-against-v3.18-rc2~97^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=743cb1ff191f00fee653212bdbcee1e56086d6ce;p=pandora-kernel.git sched/fair: Make calculate_imbalance() independent Rik noticed that calculate_imbalance() relies on update_sd_pick_busiest() to guarantee that busiest->sum_nr_running > busiest->group_capacity_factor. Break this implicit assumption (with the intent of not providing it anymore) by having calculat_imbalance() verify it and not rely on others. Reported-by: Rik van Riel Signed-off-by: Peter Zijlstra Acked-by: Vincent Guittot Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/20140729152631.GW12054@laptop.lan Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed