From: Gautham R Shenoy Date: Wed, 2 Sep 2009 11:29:10 +0000 (+0530) Subject: sched: Try to deal with low capacity, fix update_sd_power_savings_stats() X-Git-Tag: v2.6.32-rc1~719^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d899a789c28ded9c72b57ddb61868d6b8fc23e80;p=pandora-kernel.git sched: Try to deal with low capacity, fix update_sd_power_savings_stats() sgs.group_capacity can now be 0, if for some reason group->__cpu_power happens to be less than SCHED_LOAD_SCALE/2. In that case, we need the following fix to make it work for update_sd_power_savings_stats(). That's because both sum_nr_running and group_capacity are unsigned longs. Cc: Gautham R Shenoy Cc: Peter Zijlstra Cc: Andreas Herrmann Cc: Balbir Singh Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed