Commit 3d0ddc0d authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] rest_init() local irq fix

It's not necessary to keep IRQs disabled after the BKL has been dropped.
In fact i think IRQ-disabling doesnt have to be done at all, the patch
below ought to solve this scenario equally well, and should solve the PPC
side-effects too.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fc8691bf
......@@ -373,14 +373,9 @@ static void noinline rest_init(void)
{
kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND);
numa_default_policy();
/*
* Re-enable preemption but disable interrupts to make sure
* we dont get preempted until we schedule() in cpu_idle().
*/
local_irq_disable();
preempt_enable_no_resched();
unlock_kernel();
cpu_idle();
preempt_enable_no_resched();
cpu_idle();
}
/* Check for early params. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment