aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c
index d7211faed2ad..9c51ee7adf3d 100644
--- a/init/main.c
+++ b/init/main.c
@@ -369,9 +369,12 @@ static noinline void __init_refok rest_init(void)
369 init_idle_bootup_task(current); 369 init_idle_bootup_task(current);
370 preempt_enable_no_resched(); 370 preempt_enable_no_resched();
371 schedule(); 371 schedule();
372 preempt_disable(); 372
373 /* At this point, we can enable user mode helper functionality */
374 usermodehelper_enable();
373 375
374 /* Call into cpu_idle with preempt disabled */ 376 /* Call into cpu_idle with preempt disabled */
377 preempt_disable();
375 cpu_idle(); 378 cpu_idle();
376} 379}
377 380
@@ -715,7 +718,7 @@ static void __init do_basic_setup(void)
715{ 718{
716 cpuset_init_smp(); 719 cpuset_init_smp();
717 usermodehelper_init(); 720 usermodehelper_init();
718 init_tmpfs(); 721 shmem_init();
719 driver_init(); 722 driver_init();
720 init_irq_proc(); 723 init_irq_proc();
721 do_ctors(); 724 do_ctors();