diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/init/main.c b/init/main.c index e3f0bb20b4dd..8b4a7d769162 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -50,9 +50,8 @@ | |||
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> | 53 | #include <linux/pid_namespace.h> |
55 | #include <linux/compile.h> | 54 | #include <linux/device.h> |
56 | 55 | ||
57 | #include <asm/io.h> | 56 | #include <asm/io.h> |
58 | #include <asm/bugs.h> | 57 | #include <asm/bugs.h> |
@@ -94,7 +93,6 @@ extern void pidmap_init(void); | |||
94 | extern void prio_tree_init(void); | 93 | extern void prio_tree_init(void); |
95 | extern void radix_tree_init(void); | 94 | extern void radix_tree_init(void); |
96 | extern void free_initmem(void); | 95 | extern void free_initmem(void); |
97 | extern void driver_init(void); | ||
98 | extern void prepare_namespace(void); | 96 | extern void prepare_namespace(void); |
99 | #ifdef CONFIG_ACPI | 97 | #ifdef CONFIG_ACPI |
100 | extern void acpi_early_init(void); | 98 | extern void acpi_early_init(void); |
@@ -482,12 +480,6 @@ void __init __attribute__((weak)) smp_setup_processor_id(void) | |||
482 | { | 480 | { |
483 | } | 481 | } |
484 | 482 | ||
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 | |||
491 | asmlinkage void __init start_kernel(void) | 483 | asmlinkage void __init start_kernel(void) |
492 | { | 484 | { |
493 | char * command_line; | 485 | char * command_line; |
@@ -538,6 +530,11 @@ asmlinkage void __init start_kernel(void) | |||
538 | parse_args("Booting kernel", command_line, __start___param, | 530 | parse_args("Booting kernel", command_line, __start___param, |
539 | __stop___param - __start___param, | 531 | __stop___param - __start___param, |
540 | &unknown_bootoption); | 532 | &unknown_bootoption); |
533 | if (!irqs_disabled()) { | ||
534 | printk(KERN_WARNING "start_kernel(): bug: interrupts were " | ||
535 | "enabled *very* early, fixing it\n"); | ||
536 | local_irq_disable(); | ||
537 | } | ||
541 | sort_main_extable(); | 538 | sort_main_extable(); |
542 | trap_init(); | 539 | trap_init(); |
543 | rcu_init(); | 540 | rcu_init(); |
@@ -698,7 +695,7 @@ static void __init do_basic_setup(void) | |||
698 | do_initcalls(); | 695 | do_initcalls(); |
699 | } | 696 | } |
700 | 697 | ||
701 | static void do_pre_smp_initcalls(void) | 698 | static void __init do_pre_smp_initcalls(void) |
702 | { | 699 | { |
703 | extern int spawn_ksoftirqd(void); | 700 | extern int spawn_ksoftirqd(void); |
704 | #ifdef CONFIG_SMP | 701 | #ifdef CONFIG_SMP |