public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sched domains bringup race?
@ 2004-07-16  2:13 Dave Hansen
  2004-07-16  3:03 ` Nick Piggin
  2004-07-18 20:45 ` Keshavamurthy Anil S
  0 siblings, 2 replies; 10+ messages in thread
From: Dave Hansen @ 2004-07-16  2:13 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Matthew C. Dobson [imap], Linux Kernel Mailing List

I keep getting oopses for the non-boot CPU in find_busiest_group(). 
This occurs the first time that the CPU goes idle.  Those groups are set
up in sched_init_smp(), which is called after smp_init():

static int init(void * unused)
{
	...
        fixup_cpu_present_map();
        smp_init();
        sched_init_smp();

But, the idle threads for the secondary CPUs are initialized in
smp_init().  So, what happens when a CPU tries to schedule (using sched
domains) before sched_init_smp() completes?  I think it goes boom! :)

Anyway, I was thinking that we should just hold the runqueue lock on the
non-boot CPUs until the sched domain init code is done.  Does that sound
feasible?

-- Dave


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

end of thread, other threads:[~2004-07-23  0:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-16  2:13 sched domains bringup race? Dave Hansen
2004-07-16  3:03 ` Nick Piggin
2004-07-16  3:30   ` Dave Hansen
2004-07-16  3:46     ` Nick Piggin
2004-07-16  5:27       ` Nick Piggin
2004-07-18 20:45 ` Keshavamurthy Anil S
2004-07-19  7:31   ` Nick Piggin
2004-07-22 21:55     ` Nathan Lynch
2004-07-22 23:23       ` Keshavamurthy Anil S
2004-07-23  0:33       ` Nick Piggin

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