MIPS: call set_cpu_online() on cpu being brought up with irq disabled
authorYong Zhang <[email protected]>
Thu, 19 Jul 2012 07:13:53 +0000 (09:13 +0200)
committerRalf Baechle <[email protected]>
Thu, 19 Jul 2012 09:23:44 +0000 (11:23 +0200)
commitb9a09a0660aa9174e489ac531244680971950ef8
tree48868fe81c6e29b1df7e09386b40d6c1115094e5
parent5309bdac7029c7d8659d6653761f3402e17ed1ab
MIPS: call set_cpu_online() on cpu being brought up with irq disabled

To prevent a problem as commit 5fbd036b [sched: Cleanup cpu_active madness]
and commit 2baab4e9 [sched: Fix select_fallback_rq() vs cpu_active/cpu_online]
try to resolve, move set_cpu_online() to the brought up CPU and with irq
disabled.

Signed-off-by: Yong Zhang <[email protected]>
Cc: Sergei Shtylyov <[email protected]>
Cc: David Daney <[email protected]>
Acked-by: David Daney <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/3851/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/kernel/smp.c