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
This commit is contained in:
Nicholas Piggin 2021-01-30 23:08:39 +10:00 • committed by Michael Ellerman
commit e6f8a6c86c
3 changed files with 15 additions and 20 deletions