Fix possible deadlock on SMP stop_this_cpu
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Sun, 4 Mar 2012 00:24:36 +0000 (02:24 +0200)
committerRudolf Marek <r.marek@assembler.cz>
Sun, 25 Mar 2012 18:35:26 +0000 (20:35 +0200)
commita01ae624af5a9afa0e8799aa0f8823d6b8137457
treeb5b3e2a69fb5c425a7180261ff6cfaacce91c107
parent8b28d50cdd1384893ec0565453eea77031aa7ec8
Fix possible deadlock on SMP stop_this_cpu

Do not use printk on the running thread after it has been sent
the INIT IPI, execution may halt with console spinlock held.

Change-Id: I64608935ea740fb827fa0307442f3fb102de7a08
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/776
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
src/cpu/x86/lapic/lapic_cpu_init.c