diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index f142d4035341..27f97f9b4636 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -394,14 +394,16 @@ static void noinline rest_init(void) | |||
394 | kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND); | 394 | kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND); |
395 | numa_default_policy(); | 395 | numa_default_policy(); |
396 | unlock_kernel(); | 396 | unlock_kernel(); |
397 | preempt_enable_no_resched(); | ||
398 | 397 | ||
399 | /* | 398 | /* |
400 | * The boot idle thread must execute schedule() | 399 | * The boot idle thread must execute schedule() |
401 | * at least one to get things moving: | 400 | * at least one to get things moving: |
402 | */ | 401 | */ |
402 | preempt_enable_no_resched(); | ||
403 | schedule(); | 403 | schedule(); |
404 | preempt_disable(); | ||
404 | 405 | ||
406 | /* Call into cpu_idle with preempt disabled */ | ||
405 | cpu_idle(); | 407 | cpu_idle(); |
406 | } | 408 | } |
407 | 409 | ||