Commit 3c14138b authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Early child_reaper initialization

This sets child_reaper to the idle thread upon creation, so that
ksoftirqd's reparent_to_init call doesn't get the swapper as parent.
parent efec05b7
...@@ -490,16 +490,6 @@ static void __init do_initcalls(void) ...@@ -490,16 +490,6 @@ static void __init do_initcalls(void)
*/ */
static void __init do_basic_setup(void) static void __init do_basic_setup(void)
{ {
/*
* Tell the world that we're going to be the grim
* reaper of innocent orphaned children.
*
* We don't want people to have to make incorrect
* assumptions about where in the task array this
* can be found.
*/
child_reaper = current;
#if defined(CONFIG_MTRR) /* Do this after SMP initialization */ #if defined(CONFIG_MTRR) /* Do this after SMP initialization */
/* /*
* We should probably create some architecture-dependent "fixup after * We should probably create some architecture-dependent "fixup after
...@@ -545,6 +535,16 @@ static int init(void * unused) ...@@ -545,6 +535,16 @@ static int init(void * unused)
static char * argv_sh[] = { "sh", NULL, }; static char * argv_sh[] = { "sh", NULL, };
lock_kernel(); lock_kernel();
/*
* Tell the world that we're going to be the grim
* reaper of innocent orphaned children.
*
* We don't want people to have to make incorrect
* assumptions about where in the task array this
* can be found.
*/
child_reaper = current;
/* Sets up cpus_possible() */ /* Sets up cpus_possible() */
smp_prepare_cpus(max_cpus); smp_prepare_cpus(max_cpus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment