diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/init/main.c b/init/main.c index a42fdf4aeba9..9b34c1b8d76c 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -444,7 +444,6 @@ static noinline void __init_refok rest_init(void) | |||
444 | kthreadd_task = find_task_by_pid_ns(pid, &init_pid_ns); | 444 | kthreadd_task = find_task_by_pid_ns(pid, &init_pid_ns); |
445 | rcu_read_unlock(); | 445 | rcu_read_unlock(); |
446 | complete(&kthreadd_done); | 446 | complete(&kthreadd_done); |
447 | unlock_kernel(); | ||
448 | 447 | ||
449 | /* | 448 | /* |
450 | * The boot idle thread must execute schedule() | 449 | * The boot idle thread must execute schedule() |
@@ -565,7 +564,6 @@ asmlinkage void __init start_kernel(void) | |||
565 | * Interrupts are still disabled. Do necessary setups, then | 564 | * Interrupts are still disabled. Do necessary setups, then |
566 | * enable them | 565 | * enable them |
567 | */ | 566 | */ |
568 | lock_kernel(); | ||
569 | tick_init(); | 567 | tick_init(); |
570 | boot_cpu_init(); | 568 | boot_cpu_init(); |
571 | page_address_init(); | 569 | page_address_init(); |
@@ -829,7 +827,6 @@ static noinline int init_post(void) | |||
829 | /* need to finish all async __init code before freeing the memory */ | 827 | /* need to finish all async __init code before freeing the memory */ |
830 | async_synchronize_full(); | 828 | async_synchronize_full(); |
831 | free_initmem(); | 829 | free_initmem(); |
832 | unlock_kernel(); | ||
833 | mark_rodata_ro(); | 830 | mark_rodata_ro(); |
834 | system_state = SYSTEM_RUNNING; | 831 | system_state = SYSTEM_RUNNING; |
835 | numa_default_policy(); | 832 | numa_default_policy(); |
@@ -869,8 +866,6 @@ static int __init kernel_init(void * unused) | |||
869 | * Wait until kthreadd is all set-up. | 866 | * Wait until kthreadd is all set-up. |
870 | */ | 867 | */ |
871 | wait_for_completion(&kthreadd_done); | 868 | wait_for_completion(&kthreadd_done); |
872 | lock_kernel(); | ||
873 | |||
874 | /* | 869 | /* |
875 | * init can allocate pages on any node | 870 | * init can allocate pages on any node |
876 | */ | 871 | */ |