powerpc/64s: masked_interrupt() returns to kernel so avoid restoring r13
authorNicholas Piggin <npiggin@gmail.com>
Fri, 11 Aug 2017 16:39:01 +0000 (02:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2017 13:11:28 +0000 (23:11 +1000)
commitc05f0be888225f7228f81825730da3c9ba2088cb
treef96e66e3e48fdc3acd16678e4fb60d1c9298649e
parent6e9a2f6ebac457dd81c531473c1364514907e5a7
powerpc/64s: masked_interrupt() returns to kernel so avoid restoring r13

Places in the kernel where r13 is not the PACA pointer must have
maskable interrupts disabled, so r13 does not have to be restored when
returning from a soft-masked interrupt. We should never have
interrupts soft disabled when we're in user space.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S