]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: add interrupt_cond_local_irq_enable helper
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:39 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:12 +0000 (00:02 +1100)
commite6f8a6c86ce7b2108c03c1cc014fdae278573df1
tree919bb1ecde29bc1dadd7bf8578f81242e20cb8dc
parent3a96570ffceb15c6ed9cc6f990f172dcdc8ac279
powerpc: add interrupt_cond_local_irq_enable helper

Simple helper for synchronous interrupt handlers (i.e., process-context)
to enable interrupts if it was taken in an interrupts-enabled context.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-30-npiggin@gmail.com
arch/powerpc/include/asm/interrupt.h
arch/powerpc/kernel/traps.c
arch/powerpc/mm/fault.c