diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/init/main.c b/init/main.c index 798fe450e708..05b313283311 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <linux/rmap.h> | 50 | #include <linux/rmap.h> |
51 | #include <linux/mempolicy.h> | 51 | #include <linux/mempolicy.h> |
52 | #include <linux/key.h> | 52 | #include <linux/key.h> |
53 | #include <linux/unwind.h> | ||
54 | #include <linux/buffer_head.h> | 53 | #include <linux/buffer_head.h> |
55 | #include <linux/page_cgroup.h> | 54 | #include <linux/page_cgroup.h> |
56 | #include <linux/debug_locks.h> | 55 | #include <linux/debug_locks.h> |
@@ -108,7 +107,7 @@ EXPORT_SYMBOL(system_state); | |||
108 | 107 | ||
109 | extern void time_init(void); | 108 | extern void time_init(void); |
110 | /* Default late time init is NULL. archs can override this later. */ | 109 | /* Default late time init is NULL. archs can override this later. */ |
111 | void (*late_time_init)(void); | 110 | void (*__initdata late_time_init)(void); |
112 | extern void softirq_init(void); | 111 | extern void softirq_init(void); |
113 | 112 | ||
114 | /* Untouched command line saved by arch-specific code. */ | 113 | /* Untouched command line saved by arch-specific code. */ |
@@ -447,7 +446,7 @@ static void __init setup_command_line(char *command_line) | |||
447 | * gcc-3.4 accidentally inlines this function, so use noinline. | 446 | * gcc-3.4 accidentally inlines this function, so use noinline. |
448 | */ | 447 | */ |
449 | 448 | ||
450 | static void noinline __init_refok rest_init(void) | 449 | static noinline void __init_refok rest_init(void) |
451 | __releases(kernel_lock) | 450 | __releases(kernel_lock) |
452 | { | 451 | { |
453 | int pid; | 452 | int pid; |
@@ -537,7 +536,6 @@ asmlinkage void __init start_kernel(void) | |||
537 | * Need to run as early as possible, to initialize the | 536 | * Need to run as early as possible, to initialize the |
538 | * lockdep hash: | 537 | * lockdep hash: |
539 | */ | 538 | */ |
540 | unwind_init(); | ||
541 | lockdep_init(); | 539 | lockdep_init(); |
542 | debug_objects_early_init(); | 540 | debug_objects_early_init(); |
543 | cgroup_init_early(); | 541 | cgroup_init_early(); |
@@ -559,7 +557,6 @@ asmlinkage void __init start_kernel(void) | |||
559 | setup_arch(&command_line); | 557 | setup_arch(&command_line); |
560 | mm_init_owner(&init_mm, &init_task); | 558 | mm_init_owner(&init_mm, &init_task); |
561 | setup_command_line(command_line); | 559 | setup_command_line(command_line); |
562 | unwind_setup(); | ||
563 | setup_per_cpu_areas(); | 560 | setup_per_cpu_areas(); |
564 | setup_nr_cpu_ids(); | 561 | setup_nr_cpu_ids(); |
565 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ | 562 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ |
@@ -787,7 +784,7 @@ static void run_init_process(char *init_filename) | |||
787 | /* This is a non __init function. Force it to be noinline otherwise gcc | 784 | /* This is a non __init function. Force it to be noinline otherwise gcc |
788 | * makes it inline to init() and it becomes part of init.text section | 785 | * makes it inline to init() and it becomes part of init.text section |
789 | */ | 786 | */ |
790 | static int noinline init_post(void) | 787 | static noinline int init_post(void) |
791 | { | 788 | { |
792 | free_initmem(); | 789 | free_initmem(); |
793 | unlock_kernel(); | 790 | unlock_kernel(); |