diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2002-07-27 06:06:48 -0700 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2002-07-27 06:06:48 -0700 |
| commit | 9ef49e9038d08fa341ec1d19b00401f7939fb31c (patch) | |
| tree | e39894dcb037e04a60323eeca779dc6be9245969 /init | |
| parent | e861caac171fb06e09d040b6b817e47fa1a85e49 (diff) | |
[PATCH] Fix ksoftirqd and migration threads initcalls
This patch fixes the calls to initialize ksoftirqd and the
migration threads. This really should be done by the initcall
depends patch.
Diffstat (limited to 'init')
| -rw-r--r-- | init/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index a1c080027c3b..2d72a8a3183d 100644 --- a/init/main.c +++ b/init/main.c @@ -524,6 +524,15 @@ static void __init do_basic_setup(void) do_initcalls(); } +static void do_pre_smp_initcalls(void) +{ + extern int migration_init(void); + extern int spawn_ksoftirqd(void); + + migration_init(); + spawn_ksoftirqd(); +} + extern void prepare_namespace(void); static int init(void * unused) @@ -533,6 +542,9 @@ static int init(void * unused) lock_kernel(); /* Sets up cpus_possible() */ smp_prepare_cpus(max_cpus); + + do_pre_smp_initcalls(); + smp_init(); do_basic_setup(); |
