diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c index eb8bdbae4fc7..0eb1c7463fe4 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -436,15 +436,16 @@ static void noinline __init_refok rest_init(void) | |||
436 | 436 | ||
437 | /* | 437 | /* |
438 | * The boot idle thread must execute schedule() | 438 | * The boot idle thread must execute schedule() |
439 | * at least one to get things moving: | 439 | * at least once to get things moving: |
440 | */ | 440 | */ |
441 | init_idle_bootup_task(current); | ||
441 | preempt_enable_no_resched(); | 442 | preempt_enable_no_resched(); |
442 | schedule(); | 443 | schedule(); |
443 | preempt_disable(); | 444 | preempt_disable(); |
444 | 445 | ||
445 | /* Call into cpu_idle with preempt disabled */ | 446 | /* Call into cpu_idle with preempt disabled */ |
446 | cpu_idle(); | 447 | cpu_idle(); |
447 | } | 448 | } |
448 | 449 | ||
449 | /* Check for early params. */ | 450 | /* Check for early params. */ |
450 | static int __init do_early_param(char *param, char *val) | 451 | static int __init do_early_param(char *param, char *val) |