From: Peter Zijlstra Date: Fri, 21 Aug 2009 11:58:54 +0000 (+0200) Subject: sched: Avoid division by zero X-Git-Tag: v2.6.32-rc1~719^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8af7246c114bfd939e539f9566b872c06f6225c;p=pandora-kernel.git sched: Avoid division by zero Patch a5004278f0525dcb9aa43703ef77bf371ea837cd (sched: Fix cgroup smp fairness) introduced the possibility of a divide-by-zero because load-balancing is not synchronized between sched_domains. This can cause the state of cpus to change between the first and second loop over the sched domain in tg_shares_up(). Reported-by: Yinghai Lu Signed-off-by: Peter Zijlstra Cc: Jes Sorensen Cc: Jens Axboe Cc: Linus Torvalds LKML-Reference: <1250855934.7538.30.camel@twins> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed