powerpc/64: add context tracking to asynchronous interrupts
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:43 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:10:48 +0000 (00:10 +1100)
commit6fdb0f410bb026ade092039a6c2655a53323c996
tree9a1eab737b01ffd646c612a8919375cb3c5936fe
parent540d4d34bef4ec58aba12b159030492616d6f54e
powerpc/64: add context tracking to asynchronous interrupts

Previously context tracking was not done for asynchronous interrupts,
(those that run in interrupt context), and if those would cause a
reschedule when they exit, then scheduling functions (schedule_user,
preempt_schedule_irq) call exception_enter/exit to fix this up and
exit user context.

This is a hack we would like to get away from, so do context tracking
for asynchronous interrupts too.

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-34-npiggin@gmail.com
arch/powerpc/include/asm/interrupt.h