[RFC][PATCH 6/6] fixup early boot

From: Peter Zijlstra
Date: Wed Sep 19 2007 - 06:52:03 EST


Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
---
init/main.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Index: linux-2.6/init/main.c
===================================================================
--- linux-2.6.orig/init/main.c
+++ linux-2.6/init/main.c
@@ -452,7 +452,8 @@ static void noinline __init_refok rest_i
* at least once to get things moving:
*/
init_idle_bootup_task(current);
- preempt_enable_no_resched();
+ _preempt_enable_no_resched();
+
schedule();
preempt_disable();

@@ -556,7 +557,7 @@ asmlinkage void __init start_kernel(void
* Disable preemption - early bootup scheduling is extremely
* fragile until we cpu_idle() for the first time.
*/
- preempt_disable();
+ _preempt_disable();
build_all_zonelists();
page_alloc_init();
printk(KERN_NOTICE "Kernel command line: %s\n", boot_command_line);

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/