X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=init%2Fmain.c;h=0eb1c7463fe4d08c3012ee66cb486c72122a26d5;hb=45e79a3acdcf54113b3d7b23e9e64e6541dbfeb5;hp=1940fa75e82e1c88c36fba13f0ed5fd00624892e;hpb=cabca0cb0d0e8579428d8f8c3f606e2f01d26d14;p=linux-2.6-omap-h63xx.git diff --git a/init/main.c b/init/main.c index 1940fa75e82..0eb1c7463fe 100644 --- a/init/main.c +++ b/init/main.c @@ -423,7 +423,7 @@ static void __init setup_command_line(char *command_line) * gcc-3.4 accidentally inlines this function, so use noinline. */ -static void noinline rest_init(void) +static void noinline __init_refok rest_init(void) __releases(kernel_lock) { int pid; @@ -436,15 +436,16 @@ static void noinline rest_init(void) /* * The boot idle thread must execute schedule() - * at least one to get things moving: + * at least once to get things moving: */ + init_idle_bootup_task(current); preempt_enable_no_resched(); schedule(); preempt_disable(); /* Call into cpu_idle with preempt disabled */ cpu_idle(); -} +} /* Check for early params. */ static int __init do_early_param(char *param, char *val)