]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BMIPS: Do not mask IPIs during suspend
authorJustin Chen <justinpopo6@gmail.com>
Thu, 28 Sep 2017 00:15:15 +0000 (17:15 -0700)
committerJames Hogan <jhogan@kernel.org>
Mon, 5 Mar 2018 23:35:04 +0000 (23:35 +0000)
commitba1cab3ada0d291c321df6865546fa2a79df2d74
tree243ec62f917b16c1fd1bd8313487cb7d89f6b4ce
parent097b9a32f819e199892e3a904e61e7207cf0c282
MIPS: BMIPS: Do not mask IPIs during suspend

Commit 0f7b44778c4c ("MIPS: IRQ: Fix disable_irq on CPU IRQs") fixes an
issue where disable_irq did not actually disable the irq. The bug caused
our IPIs to not be disabled, which actually is the correct behavior.

With the addition of commit 0f7b44778c4c ("MIPS: IRQ: Fix disable_irq on
CPU IRQs"), the IPIs were getting disabled going into suspend, thus
schedule_ipi() was not being called. This caused deadlocks where
schedulable task were not being scheduled and other cpus were waiting
for them to do something.

Add the IRQF_NO_SUSPEND flag so an irq_disable will not be called on the
IPIs during suspend.

Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Fixes: 0f7b44778c4c ("MIPS: IRQ: Fix disabled_irq on CPU IRQs")
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17385/
[jhogan@kernel.org: checkpatch: wrap long lines and fix commit refs]
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/kernel/smp-bmips.c