]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/smp.c: quit unconditionally enabling irqs in on_each_cpu_mask().
authorDavid Daney <david.daney@cavium.com>
Wed, 11 Sep 2013 21:23:29 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:25 +0000 (15:58 -0700)
commit1f21cef5a051f0178c7c568b193ca5a04c9e35b7
tree135d76acc021c2a67b8c24dc1084b3d6cf8e01e5
parentcc75458959b90b7236e71d41a95dab844bf9e870
kernel/smp.c: quit unconditionally enabling irqs in on_each_cpu_mask().

As in commit 7c917223d5af ("smp.h: Use local_irq_{save,restore}() in
!SMP version of on_each_cpu()"), we don't want to enable irqs if they
are not already enabled.

I don't know of any bugs currently caused by this unconditional
local_irq_enable(), but I want to use this function in MIPS/OCTEON early
boot (when we have early_boot_irqs_disabled).  This also makes this
function have similar semantics to on_each_cpu() which is good in
itself.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/smp.c