metag: smp: enable irqs after set_cpu_online
authorJames Hogan <james.hogan@imgtec.com>
Fri, 28 Jun 2013 12:56:02 +0000 (13:56 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Tue, 2 Jul 2013 10:03:51 +0000 (11:03 +0100)
In secondary_start_kernel() interrupts should be enabled with
local_irq_enable() after the cpu is marked as online with
set_cpu_online(). Otherwise it's possible for a timer interrupt to
trigger a softirq, which if the cpu is marked as offline may have it's
affinity altered.

Reported-by: Kirill Tkhai <tkhai@yandex.ru>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Kirill Tkhai <tkhai@yandex.ru>

No differences found