aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-09 23:26:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-09 23:26:09 -0700
commit850f7d78d3912cbba31e4f6c266f1182a7ae8a20 (patch)
treea89c1370d2af7f0b7658b3215cdc59842a315fa3 /init
parentfa8f2c5000cafcaa87182c5f2c021ae1ae52299c (diff)
downloadhistory-850f7d78d3912cbba31e4f6c266f1182a7ae8a20.tar.gz
[PATCH] sched: trivial fixes, cleanups
From: Ingo Molnar <mingo@elte.hu> The trivial fixes. - added recent trivial bits from Nick's and my patches. - hotplug CPU fix - early init cleanup
Diffstat (limited to 'init')
-rw-r--r--init/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 6f2ccbff72a901..4236f2650fa815 100644
--- a/init/main.c
+++ b/init/main.c
@@ -417,6 +417,13 @@ asmlinkage void __init start_kernel(void)
*/
smp_prepare_boot_cpu();
+ /*
+ * Set up the scheduler prior starting any interrupts (such as the
+ * timer interrupt). Full topology setup happens at smp_init()
+ * time - but meanwhile we still have a functioning scheduler.
+ */
+ sched_init();
+
build_all_zonelists();
page_alloc_init();
printk("Kernel command line: %s\n", saved_command_line);
@@ -428,7 +435,7 @@ asmlinkage void __init start_kernel(void)
rcu_init();
init_IRQ();
pidhash_init();
- sched_init();
+ init_timers();
softirq_init();
time_init();