diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/init/main.c b/init/main.c index 1174ae3aec8c..e3f0bb20b4dd 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -50,6 +50,9 @@ | |||
50 | #include <linux/buffer_head.h> | 50 | #include <linux/buffer_head.h> |
51 | #include <linux/debug_locks.h> | 51 | #include <linux/debug_locks.h> |
52 | #include <linux/lockdep.h> | 52 | #include <linux/lockdep.h> |
53 | #include <linux/utsrelease.h> | ||
54 | #include <linux/pid_namespace.h> | ||
55 | #include <linux/compile.h> | ||
53 | 56 | ||
54 | #include <asm/io.h> | 57 | #include <asm/io.h> |
55 | #include <asm/bugs.h> | 58 | #include <asm/bugs.h> |
@@ -91,7 +94,6 @@ extern void pidmap_init(void); | |||
91 | extern void prio_tree_init(void); | 94 | extern void prio_tree_init(void); |
92 | extern void radix_tree_init(void); | 95 | extern void radix_tree_init(void); |
93 | extern void free_initmem(void); | 96 | extern void free_initmem(void); |
94 | extern void populate_rootfs(void); | ||
95 | extern void driver_init(void); | 97 | extern void driver_init(void); |
96 | extern void prepare_namespace(void); | 98 | extern void prepare_namespace(void); |
97 | #ifdef CONFIG_ACPI | 99 | #ifdef CONFIG_ACPI |
@@ -480,6 +482,12 @@ void __init __attribute__((weak)) smp_setup_processor_id(void) | |||
480 | { | 482 | { |
481 | } | 483 | } |
482 | 484 | ||
485 | static const char linux_banner[] = | ||
486 | "Linux version " UTS_RELEASE | ||
487 | " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" | ||
488 | " (" LINUX_COMPILER ")" | ||
489 | " " UTS_VERSION "\n"; | ||
490 | |||
483 | asmlinkage void __init start_kernel(void) | 491 | asmlinkage void __init start_kernel(void) |
484 | { | 492 | { |
485 | char * command_line; | 493 | char * command_line; |
@@ -624,8 +632,6 @@ static int __init initcall_debug_setup(char *str) | |||
624 | } | 632 | } |
625 | __setup("initcall_debug", initcall_debug_setup); | 633 | __setup("initcall_debug", initcall_debug_setup); |
626 | 634 | ||
627 | struct task_struct *child_reaper = &init_task; | ||
628 | |||
629 | extern initcall_t __initcall_start[], __initcall_end[]; | 635 | extern initcall_t __initcall_start[], __initcall_end[]; |
630 | 636 | ||
631 | static void __init do_initcalls(void) | 637 | static void __init do_initcalls(void) |
@@ -725,7 +731,7 @@ static int init(void * unused) | |||
725 | * assumptions about where in the task array this | 731 | * assumptions about where in the task array this |
726 | * can be found. | 732 | * can be found. |
727 | */ | 733 | */ |
728 | child_reaper = current; | 734 | init_pid_ns.child_reaper = current; |
729 | 735 | ||
730 | cad_pid = task_pid(current); | 736 | cad_pid = task_pid(current); |
731 | 737 | ||
@@ -738,12 +744,6 @@ static int init(void * unused) | |||
738 | 744 | ||
739 | cpuset_init_smp(); | 745 | cpuset_init_smp(); |
740 | 746 | ||
741 | /* | ||
742 | * Do this before initcalls, because some drivers want to access | ||
743 | * firmware files. | ||
744 | */ | ||
745 | populate_rootfs(); | ||
746 | |||
747 | do_basic_setup(); | 747 | do_basic_setup(); |
748 | 748 | ||
749 | /* | 749 | /* |