ARM: fix rcu stalls on SMP platforms
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Jan 2012 15:20:58 +0000 (15:20 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Jul 2012 03:32:11 +0000 (04:32 +0100)
commitbd00fcf3ec0c7fc0b194ba37a07564517fed11b8
tree649366384c417458b69ce6cd84d04ae6c0b85321
parenta9f1af04f086656246f30354fb4564ce3b08c4a0
ARM: fix rcu stalls on SMP platforms

commit 7deabca0acfe02b8e18f59a4c95676012f49a304 upstream.

We can stall RCU processing on SMP platforms if a CPU sits in its idle
loop for a long time.  This happens because we don't call irq_enter()
and irq_exit() around generic_smp_call_function_interrupt() and
friends.  Add the necessary calls, and remove the one from within
ipi_timer(), so that they're all in a common place.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/kernel/smp.c