aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/smpboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/smpboot.c')
-rw-r--r--arch/ia64/kernel/smpboot.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
index 1d85d8cfaa7d..d003b502a432 100644
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -508,21 +508,18 @@ do_boot_cpu (int sapicid, int cpu)
508 .done = COMPLETION_INITIALIZER(c_idle.done), 508 .done = COMPLETION_INITIALIZER(c_idle.done),
509 }; 509 };
510 510
511 /*
512 * We can't use kernel_thread since we must avoid to
513 * reschedule the child.
514 */
511 c_idle.idle = get_idle_for_cpu(cpu); 515 c_idle.idle = get_idle_for_cpu(cpu);
512 if (c_idle.idle) { 516 if (c_idle.idle) {
513 init_idle(c_idle.idle, cpu); 517 init_idle(c_idle.idle, cpu);
514 goto do_rest; 518 goto do_rest;
515 } 519 }
516 520
517 /* 521 schedule_work(&c_idle.work);
518 * We can't use kernel_thread since we must avoid to reschedule the child. 522 wait_for_completion(&c_idle.done);
519 */
520 if (!keventd_up())
521 c_idle.work.func(&c_idle.work);
522 else {
523 schedule_work(&c_idle.work);
524 wait_for_completion(&c_idle.done);
525 }
526 523
527 if (IS_ERR(c_idle.idle)) 524 if (IS_ERR(c_idle.idle))
528 panic("failed fork for CPU %d", cpu); 525 panic("failed fork for CPU %d", cpu);