]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit234c7f1ac109ad1af4ae410463d03ccebf3d6657
tree445494b2ed23a56964859e048d4eed0933dc8060
parent42748752f6ada54faa4f39fa471dabce62eaa79a
metag: smp: enable irqs after set_cpu_online

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>
arch/metag/kernel/smp.c