]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: warn if local irqs are enabled in NMI or hardirq context
authorNicholas Piggin <npiggin@gmail.com>
Mon, 4 Oct 2021 14:56:40 +0000 (00:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Oct 2021 08:54:55 +0000 (19:54 +1100)
commit7ad4b29baaa7ccc1b0732d1bfba60f5f7a75f699
tree62421c0d3d106968f2bebe26ecf7490cb1362bbe
parentc0043c00acb5da2f0a3c53d5b11ef0ff7693c6b5
powerpc/64: warn if local irqs are enabled in NMI or hardirq context

This can help catch bugs such as the one fixed by the previous change
to prevent _exception() from enabling irqs.

ppc32 could have a similar warning but it has no good config option to
debug this stuff (the test may be overkill to add for production
kernels).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211004145642.1331214-4-npiggin@gmail.com
arch/powerpc/kernel/irq.c