All of lore.kernel.org
 help / color / mirror / Atom feed
* Commit cb83b62 fails to boot with a divide by zero error.
@ 2012-05-11 13:39 Robin Holt
  2012-05-11 14:33 ` Peter Zijlstra
  0 siblings, 1 reply; 8+ messages in thread
From: Robin Holt @ 2012-05-11 13:39 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar; +Cc: linux-kernel

Ingo, there is a breakage in the x86/master branch.

While testing some of our configurations, we found they would not boot.
The following got things working:

--- linux.orig/kernel/sched/fair.c      2012-05-11 06:29:44.000000000 -0500
+++ linux/kernel/sched/fair.c   2012-05-11 06:31:52.217156410 -0500
@@ -3835,7 +3835,7 @@ static inline void update_sg_lb_stats(st
        }
 
        /* Adjust by relative CPU power of the group */
-       sgs->avg_load = (sgs->group_load*SCHED_POWER_SCALE) / group->sgp->power;
+       sgs->avg_load = (sgs->group_load*SCHED_POWER_SCALE) / max(group->sgp->power, 1);
 
        /*
         * Consider the group unbalanced when the imbalance is larger


We found that reverting the commit:
cb83b62 (x86/sched/core) sched/numa: Rewrite the CONFIG_NUMA sched domain support

also got things working.

Thanks,
Robin Holt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-14 12:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11 13:39 Commit cb83b62 fails to boot with a divide by zero error Robin Holt
2012-05-11 14:33 ` Peter Zijlstra
2012-05-11 15:05   ` Robin Holt
2012-05-11 15:36     ` Peter Zijlstra
2012-05-11 15:55       ` Robin Holt
2012-05-11 16:01         ` Peter Zijlstra
2012-05-14 10:48         ` Ingo Molnar
2012-05-14 12:40           ` Robin Holt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.