public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SMP BUG
@ 2006-02-14  0:19 Hubertus Franke
  2006-02-15 23:07 ` Russell King
  0 siblings, 1 reply; 15+ messages in thread
From: Hubertus Franke @ 2006-02-14  0:19 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Folks the change introduced in 2.6.16-rc2   over 2.6.15
wrt to the SMP initialization are wrong.
Please apply to unroll the change..

Here is the logic ...
sched_init is called from start_kernel before the
architecture specific function cpu_check_smp() is called
which is done as part of rest_init().

On s390 this actually sets the cpu_possible_map, which
is now used in sched_init through the for_each_cpu without
properly being initialized.
As a result bringing 2nd and subsequent cpu online
breaks.

This should be a quick fix, until this chicken and egg
problem is solved otherwise.

-- Hubertus

--- kernel/sched.c.orig 2006-02-13 19:08:28.000000000 -0500
+++ kernel/sched.c      2006-02-13 19:09:08.000000000 -0500
@@ -6111,7 +6111,7 @@ void __init sched_init(void)
         runqueue_t *rq;
         int i, j, k;

-       for_each_cpu(i) {
+       for (i = 0; i < NR_CPUS; i++ ) {
                 prio_array_t *array;

                 rq = cpu_rq(i);


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

end of thread, other threads:[~2006-02-16 15:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14  0:19 SMP BUG Hubertus Franke
2006-02-15 23:07 ` Russell King
2006-02-15 23:17   ` Andrew Morton
2006-02-15 23:34     ` Russell King
2006-02-15 23:23   ` Linus Torvalds
2006-02-15 23:30     ` Andrew Morton
2006-02-15 23:37       ` Russell King
2006-02-15 23:46         ` Andrew Morton
2006-02-16  0:14           ` Russell King
2006-02-16  0:28             ` Andrew Morton
2006-02-16  0:52       ` Linus Torvalds
2006-02-16  3:29         ` Nick Piggin
2006-02-16  8:37     ` Ingo Molnar
2006-02-16 10:20     ` Russell King
2006-02-16 15:54       ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox